From e8461cd58b0bd56695554d777d5c5583aad31399 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Tue, 15 Oct 2024 19:02:55 -0700 Subject: [PATCH] Add map tests Signed-off-by: Alek Ratzloff --- tests/map.npp | 8 ++++++++ tests/map.npp.expect | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 tests/map.npp create mode 100644 tests/map.npp.expect diff --git a/tests/map.npp b/tests/map.npp new file mode 100644 index 0000000..6af0b46 --- /dev/null +++ b/tests/map.npp @@ -0,0 +1,8 @@ +# Map type operator and function tests + +a = [:] + +println("to_str") +println(a) +println(['a': 1]) +println(['b': 2 + 2]) diff --git a/tests/map.npp.expect b/tests/map.npp.expect new file mode 100644 index 0000000..1aac46a --- /dev/null +++ b/tests/map.npp.expect @@ -0,0 +1,4 @@ +to_str +[:] +['a': 1] +['b': 4]