Skip to content

Commit

Permalink
Make python test in Vector_Spec optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertp committed Aug 22, 2022
1 parent 934e642 commit 23d1194
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Tests/src/Data/Vector_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ foreign python generate_nested_py_array = """
return [[1, 2, 3], [4, 5]]

spec = Test.group "Vectors" <|
pending_python_missing = if Polyglot.is_language_installed "python" then Nothing else """
Can't run Python tests, Python is not installed.

Test.specify "text bytes" <|
"Lore".utf_8 . should_equal [76, 111, 114, 101]
Expand All @@ -49,6 +51,8 @@ spec = Test.group "Vectors" <|
Test.specify "should allow creation from arrays without mutability" <|
built_from_js = Vector.from_polyglot_array generate_js_array
built_from_js . should_equal [1, 2, 3, 4, 5]

Test.specify "should allow creation from arrays without mutability in Python" pending=pending_python_missing <|
built_from_py = Vector.from_polyglot_array generate_py_array
built_from_py . should_equal [1, 2, 3, 4, Nothing]

Expand Down

0 comments on commit 23d1194

Please sign in to comment.