about summary refs log tree commit diff stats
path: root/015literal_noninteger.cc
diff options
context:
space:
mode:
Diffstat (limited to '015literal_noninteger.cc')
-rw-r--r--015literal_noninteger.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/015literal_noninteger.cc b/015literal_noninteger.cc
index 554bcdd5..12f24586 100644
--- a/015literal_noninteger.cc
+++ b/015literal_noninteger.cc
@@ -1,11 +1,15 @@
 //: Support literal non-integers.
 
-:(scenarios load)
-:(scenario noninteger_literal)
-def main [
-  1:number <- copy 3.14159
-]
-+parse:   ingredient: {3.14159: "literal-fractional-number"}
+void test_noninteger_literal() {
+  load(
+      "def main [\n"
+      "  1:number <- copy 3.14159\n"
+      "]\n"
+  );
+  CHECK_TRACE_CONTENTS(
+      "parse:   ingredient: {3.14159: \"literal-fractional-number\"}\n"
+  );
+}
 
 :(after "Parsing reagent(string s)")
 if (is_noninteger(s)) {