Skip to content

Commit

Permalink
[test/spec] Update test names for dynamic var names in ble.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Mar 21, 2020
1 parent 15d41ab commit 204b3d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/arith.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ))
Expand All @@ -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 ))
Expand All @@ -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 )) ))
Expand Down

0 comments on commit 204b3d2

Please sign in to comment.