Skip to content

Commit

Permalink
Fixed failing signal test
Browse files Browse the repository at this point in the history
  • Loading branch information
asherwolfstein committed Jun 6, 2021
1 parent 0d5f153 commit 8d4efcc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Byter.gd
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ func set_value(

emit_signal(
'value_changed',
old_decimal_value,
value.to_decimal(),
old_decimal_value,
self
)
else:
Expand Down
32 changes: 16 additions & 16 deletions test/unit/test_Byter.gd
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ str(comparison), str(new_value), byter ]
[ str(new_value), str(comparison), byter ]
)

var new_basic: PressAccept_Arbiter_Basic = \
Expand All @@ -149,7 +149,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ str(new_value), new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), str(new_value), byter ]
)

var old_value: String = byter.decimal_str
Expand All @@ -159,7 +159,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -168,7 +168,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -178,7 +178,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -187,7 +187,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -197,7 +197,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -207,7 +207,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, str(new_value), byter ]
[ str(new_value), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -218,7 +218,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -230,7 +230,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -241,7 +241,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -253,7 +253,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -264,7 +264,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -275,7 +275,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -286,7 +286,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)

old_value = byter.decimal_str
Expand All @@ -297,7 +297,7 @@ func test_byter_signal_value_changed() -> void:
assert_signal_emitted_with_parameters(
byter,
'value_changed',
[ old_value, new_basic.to_decimal(), byter ]
[ new_basic.to_decimal(), old_value, byter ]
)


Expand Down

0 comments on commit 8d4efcc

Please sign in to comment.