From 204b3d2bdf8a79556079bcc7d9039d03d5180888 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sat, 21 Mar 2020 19:22:19 +0900 Subject: [PATCH] [test/spec] Update test names for dynamic var names in ble.sh --- spec/arith.test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/arith.test.sh b/spec/arith.test.sh index c0c5c8206b..0d49039481 100644 --- a/spec/arith.test.sh +++ b/spec/arith.test.sh @@ -532,7 +532,7 @@ xbar[5]=42 ## N-I dash status: 2 ## N-I dash stdout-json: "" -#### dynamic var name (prefix): assign +#### ble.sh (dynamic var name with prefix): assign vec2_set () { local this=$1 x=$2 y=$3 : $(( ${this}_x = $2 )) @@ -547,7 +547,7 @@ a_x=3 a_y=4 b_x=5 b_y=12 ## END -#### dynamic var name (prefix): read +#### ble.sh (dynamic var name with prefix): read vec2_load() { local this=$1 x=$(( ${this}_x )) @@ -560,7 +560,7 @@ echo x=$x y=$y x=12 y=34 ## END -#### dynamic var name (prefix): copy/add +#### ble.sh (dynamic var name with prefix): copy/add vec2_copy () { local this=$1 rhs=$2 : $(( ${this}_x = $(( ${rhs}_x )) ))