From 6ffb2a54dd09ddeaabda8efccdba0d04df086ccd Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy <mmstickman@gmail.com> Date: Wed, 23 Jan 2019 09:30:15 -0700 Subject: [PATCH] :heavy_check_mark: Add integration test for map reassignment --- Makefile | 3 +-- examples/maps.ion | 5 +++++ examples/maps.out | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index af98cfd4..204e2a77 100644 --- a/Makefile +++ b/Makefile @@ -17,13 +17,12 @@ endif ifeq (1,$(REDOX)) undefine ARGSV ARGS += --target x86_64-unknown-redox - PREARGS += +nightly endif .PHONY: all clean distclean install uninstall all: version extract .cargo/config - cargo $(PREARGS) build $(ARGS) $(ARGSV) + cargo build $(ARGS) $(ARGSV) clean: cargo clean diff --git a/examples/maps.ion b/examples/maps.ion index ac17a08e..fe03b3e3 100644 --- a/examples/maps.ion +++ b/examples/maps.ion @@ -23,3 +23,8 @@ echo @map[key3] let map:bmap[float] = [ichi=1.0 ni=2.0 san=3.0] echo @map + +let map[ichi] = foo +echo @map +let map[ni] = bar +echo @map diff --git a/examples/maps.out b/examples/maps.out index b6fd1d00..a8535ee0 100644 --- a/examples/maps.out +++ b/examples/maps.out @@ -12,3 +12,5 @@ one two three ichi 1.0 ni 2.0 san 3.0 +ichi foo ni 2.0 san 3.0 +ichi foo ni bar san 3.0 -- GitLab