From 4229e81dd35494e359413318d0ae8a57ae367a59 Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Mon, 12 Aug 2019 13:17:55 -0400 Subject: [PATCH] Rename and reorg so that these are in line with the roadmap --- semantic-python/test/fixtures/python/0003-local-bindings.py | 4 ---- .../python/{0001-empty-module.py => 1-01-empty-module.py} | 0 .../python/{0002-pass-statement.py => 1-02-pass-statement.py} | 0 semantic-python/test/fixtures/python/1-03-empty-tuple.py | 2 ++ .../test/fixtures/python/1-04-toplevel-assignment.py | 4 ++++ .../test/fixtures/python/1-05-eval-statement-fails.py | 3 +++ 6 files changed, 9 insertions(+), 4 deletions(-) delete mode 100644 semantic-python/test/fixtures/python/0003-local-bindings.py rename semantic-python/test/fixtures/python/{0001-empty-module.py => 1-01-empty-module.py} (100%) rename semantic-python/test/fixtures/python/{0002-pass-statement.py => 1-02-pass-statement.py} (100%) create mode 100644 semantic-python/test/fixtures/python/1-03-empty-tuple.py create mode 100644 semantic-python/test/fixtures/python/1-04-toplevel-assignment.py create mode 100644 semantic-python/test/fixtures/python/1-05-eval-statement-fails.py diff --git a/semantic-python/test/fixtures/python/0003-local-bindings.py b/semantic-python/test/fixtures/python/0003-local-bindings.py deleted file mode 100644 index ce2327d86..000000000 --- a/semantic-python/test/fixtures/python/0003-local-bindings.py +++ /dev/null @@ -1,4 +0,0 @@ -hello = "world" -goodbye = true - -# assertions: scope contains hello and goodbye diff --git a/semantic-python/test/fixtures/python/0001-empty-module.py b/semantic-python/test/fixtures/python/1-01-empty-module.py similarity index 100% rename from semantic-python/test/fixtures/python/0001-empty-module.py rename to semantic-python/test/fixtures/python/1-01-empty-module.py diff --git a/semantic-python/test/fixtures/python/0002-pass-statement.py b/semantic-python/test/fixtures/python/1-02-pass-statement.py similarity index 100% rename from semantic-python/test/fixtures/python/0002-pass-statement.py rename to semantic-python/test/fixtures/python/1-02-pass-statement.py diff --git a/semantic-python/test/fixtures/python/1-03-empty-tuple.py b/semantic-python/test/fixtures/python/1-03-empty-tuple.py new file mode 100644 index 000000000..47b56f8bb --- /dev/null +++ b/semantic-python/test/fixtures/python/1-03-empty-tuple.py @@ -0,0 +1,2 @@ +() +# assertions: succeeded diff --git a/semantic-python/test/fixtures/python/1-04-toplevel-assignment.py b/semantic-python/test/fixtures/python/1-04-toplevel-assignment.py new file mode 100644 index 000000000..32fb2ae84 --- /dev/null +++ b/semantic-python/test/fixtures/python/1-04-toplevel-assignment.py @@ -0,0 +1,4 @@ +hello = () +goodbye = () + +# assertions: succeeded, in toplevel scope, hello = "world", goodbye = "true" diff --git a/semantic-python/test/fixtures/python/1-05-eval-statement-fails.py b/semantic-python/test/fixtures/python/1-05-eval-statement-fails.py new file mode 100644 index 000000000..5388ddf73 --- /dev/null +++ b/semantic-python/test/fixtures/python/1-05-eval-statement-fails.py @@ -0,0 +1,3 @@ +eval("'We will never support eval.'") + +# assertions: failed