File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
course/lesson-12-using-variables Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ func test_angular_speed_has_value_of_4() -> String:
3030
3131func test_angular_speed_is_used_in_process_function () -> String :
3232 var regex = RegEx .new ()
33- regex .compile ("rotate\\ (\\ s*angular_speed" )
33+ regex .compile ("rotate\\ ([^)]*(?:angular_speed \\ s*\\ * \\ s*delta|delta \\ s* \\ * \\ s* angular_speed) " )
3434 var result = regex .search (_slice .current_text )
3535 if not result :
36- return tr ("The rotate() function doesn't seem to use the angular_speed variable ." )
36+ return tr ("The rotate() call must multiply angular_speed by delta (e.g. rotate( angular_speed * delta)) ." )
3737 return ""
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ func test_angular_speed_has_value_of_4() -> String:
3030
3131func test_angular_speed_is_used_in_process_function () -> String :
3232 var regex = RegEx .new ()
33- regex .compile ("rotate\\ (\\ s*angular_speed" )
33+ regex .compile ("rotate\\ ([^)]*(?:angular_speed \\ s*\\ * \\ s*delta|delta \\ s* \\ * \\ s* angular_speed) " )
3434 var result = regex .search (_slice .current_text )
3535 if not result :
36- return tr ("The rotate() function doesn't seem to use the angular_speed variable ." )
36+ return tr ("The rotate() call must multiply angular_speed by delta (e.g. rotate( angular_speed * delta)) ." )
3737 return ""
3838
3939
You can’t perform that action at this time.
0 commit comments