From 86ce513cb5ede7ab77cfb0558702d2c816829afa Mon Sep 17 00:00:00 2001 From: ychenfo Date: Tue, 5 Apr 2022 15:55:43 +0800 Subject: [PATCH] nac3standalone: fix broken test previously this test unexpectedly passed because it is a slice assignment to extend the list, which is valid in CPython and hence in interpret_demo, and which also happened to give the same output in nac3 by memmove the elements in the list of bool --- nac3standalone/demo/src/lists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3standalone/demo/src/lists.py b/nac3standalone/demo/src/lists.py index ca153a8dc..f05701bf8 100644 --- a/nac3standalone/demo/src/lists.py +++ b/nac3standalone/demo/src/lists.py @@ -229,7 +229,7 @@ def list_slice_assignment(): bl5[3:-5] = [] output_int32_list([int32(b) for b in bl5]) bl6 = bl[:] - bl6[3:-5] = [True, False, False] + bl6[3:-5] = [True, False] output_int32_list([int32(b) for b in bl6]) bl7 = bl[:] bl7[:-2] = [False]