Skip to content

Commit

Permalink
TESTFIX: Change spinnerSelection values in tests (#68)
Browse files Browse the repository at this point in the history
* STCC-120: Update Class Hierarchy Excerpt

* TESTFIX: Change spinnerSelection values in tests
  • Loading branch information
cfkh committed Mar 10, 2018
1 parent 9f49399 commit 38a1a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Scratch2Catrobat Converter
short_name: S2CC
version: 0.9.1
build_name: Aegean cat
build_number: 919
build_number: 920

;-------------------------------------------------------------------------------
[CATROBAT]
Expand Down
4 changes: 2 additions & 2 deletions src/scratchtocatrobat/converter/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2344,15 +2344,15 @@ def test_can_convert_go_to_sprite_block_with_mouse_position(self):
scratch_block = ["gotoSpriteOrMouse:", test_sprite_name]
[catr_brick] = self.block_converter._catrobat_bricks_from(scratch_block, DUMMY_CATR_SPRITE)
assert isinstance(catr_brick, catbricks.GoToBrick)
assert catr_brick.spinnerSelection == 0
assert catr_brick.spinnerSelection == 80

#gotoSpriteOrMouse:
def test_can_convert_go_to_sprite_block_with_random_position(self):
test_sprite_name = "_random_"
scratch_block = ["gotoSpriteOrMouse:", test_sprite_name]
[catr_brick] = self.block_converter._catrobat_bricks_from(scratch_block, DUMMY_CATR_SPRITE)
assert isinstance(catr_brick, catbricks.GoToBrick)
assert catr_brick.spinnerSelection == 1
assert catr_brick.spinnerSelection == 81

#pointTowards:
def test_can_convert_point_towards_block_basic(self):
Expand Down

0 comments on commit 38a1a46

Please sign in to comment.