From fa799bd361915d3340b3d779bc777fb9322b0f74 Mon Sep 17 00:00:00 2001 From: lyon Date: Sun, 9 Jan 2022 00:16:01 +0800 Subject: [PATCH] use str(b) instead of 'test' + b --- port/linux/test/pikaMain-test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/port/linux/test/pikaMain-test.cpp b/port/linux/test/pikaMain-test.cpp index a42b8b6fe..8563c2d22 100644 --- a/port/linux/test/pikaMain-test.cpp +++ b/port/linux/test/pikaMain-test.cpp @@ -541,8 +541,8 @@ TEST(pikaMain, str_add) { "c = a + b\n" "d = 1\n" "e = 1.2\n" - "g = c + d\n" - "h = (c + d) + e\n" + "g = c + str(d)\n" + "h = c + str(d) + str(e)\n" "\n" ); /* collect */ @@ -564,7 +564,7 @@ TEST(pikaMain, str_add_print) { PikaObj* pikaMain = newRootObj((char*)"pikaMain", New_PikaMain); /* run */ obj_run(pikaMain, (char*) - "print('test: ' + 2233)\n" + "print('test: ' + str(2233))\n" "\n" ); /* collect */