diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-16 23:52:15 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-16 23:57:55 -0700 |
commit | 78c5020531a09a242f1d21b94ab128001c04bcdf (patch) | |
tree | 2b0eaef5064ca8ab0267b04983d111bd0bd87239 /082scenario_screen.cc | |
parent | 8752e6b09e302c88702ab6e7a965daa624ba5213 (diff) | |
download | mu-78c5020531a09a242f1d21b94ab128001c04bcdf.tar.gz |
3374
Diffstat (limited to '082scenario_screen.cc')
-rw-r--r-- | 082scenario_screen.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/082scenario_screen.cc b/082scenario_screen.cc index 3321a7fc..509043cc 100644 --- a/082scenario_screen.cc +++ b/082scenario_screen.cc @@ -191,7 +191,7 @@ case SCREEN_SHOULD_CONTAIN: { raise << maybe(get(Recipe, r).name) << "'screen-should-contain' requires exactly one ingredient, but got '" << inst.original_string << "'\n" << end(); break; } - if (!is_literal_string(inst.ingredients.at(0))) { + if (!is_literal_text(inst.ingredients.at(0))) { raise << maybe(get(Recipe, r).name) << "first ingredient of 'screen-should-contain' should be a literal string, but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); break; } @@ -219,7 +219,7 @@ case SCREEN_SHOULD_CONTAIN_IN_COLOR: { raise << maybe(get(Recipe, r).name) << "first ingredient of 'screen-should-contain-in-color' should be a number (color code), but got '" << inst.ingredients.at(0).original_string << "'\n" << end(); break; } - if (!is_literal_string(inst.ingredients.at(1))) { + if (!is_literal_text(inst.ingredients.at(1))) { raise << maybe(get(Recipe, r).name) << "second ingredient of 'screen-should-contain-in-color' should be a literal string, but got '" << inst.ingredients.at(1).original_string << "'\n" << end(); break; } |