Commit e348b57d authored by Jamie A. Jennings's avatar Jamie A. Jennings

Updated unit tests to work with Rosie changes in the last year or so. (The...

Updated unit tests to work with Rosie changes in the last year or so.  (The unit tests in this file are rarely executed, because the file itself is unused now (see init.rpl).  But it could be used, since it is valid rpl and could be used to parse rpl version 1.1.
parent b4fa46fa
......@@ -175,7 +175,7 @@ preparse = atmos language_decl
---------------------------------------------------------------------------------------------------
-- test preparse rejects "rpl", "rpl ", "rpl a", "rpl 1.a", "rpl 1.", "rpl 1.123", "rpl 1.\n1"
-- test preparse accepts "rpl 0.0", " rpl 1.0\n", "rpl 52.99", "rpl 99.99", "rpl 1.1 -- Comment\n"
-- test preparse accepts "rpl 0.0", " rpl 1.0", "rpl 52.99", "rpl 99.99", "--comment\nrpl 1.1"
-- test package_decl accepts "package foo", "package fooBar", "package f_oo"
-- test package_decl rejects "package", "package _foo", "package 6foo", "package .foo", "package foo.bar"
......@@ -206,11 +206,11 @@ preparse = atmos language_decl
-- test rpl_expression accepts "f:(x, y)", "foo:{a, b}"
-- test rpl_expression accepts "f:(a, 55)", "foo.bar:(1, 2, 3, a b c, d / e, {f}*)", "f:{a / b, 3}+"
-- test rpl_expression rejects "f:", "pkg.f:"
-- test rpl_expression includes arglist "f:(x, y)", "f:(3)"
-- test rpl_expression excludes arglist "f:(x y)"
-- test rpl_expression includes arg "f:(x)", f:(x y)", "f:x", "f:5", "f:{x y}", "f:{x}",
-- test rpl_expression includes arg "f:{a / b}+", "f:{(a)}", "f:{[:set:]}"
-- test rpl_expression includes rawarglist "f:{5}", "f:{7, x, a / b / c+}", "f:{(a),b}", "f:{[:set:]{1,2},\"hi\"}"
-- test rpl_expression includes exp.arglist "f:(x, y)", "f:(3)"
-- test rpl_expression excludes exp.arglist "f:(x y)"
-- test rpl_expression includes exp.arg "f:(x)", f:(x y)", "f:x", "f:5", "f:{x y}", "f:{x}",
-- test rpl_expression includes exp.arg "f:{a / b}+", "f:{(a)}", "f:{[:set:]}"
-- test rpl_expression includes exp.rawarglist "f:{5}", "f:{7, x, a / b / c+}", "f:{(a),b}", "f:{[:set:]{1,2},\"hi\"}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment