Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
briangu committed Dec 13, 2023
1 parent c181662 commit 5810cf4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
4 changes: 4 additions & 0 deletions tests/kgtests/interop/test_vectorization.kg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
t("{2*x}'!1000"; {2*x}'!1000; 2*!1000)

a::!1000
t("a::!1000;2*a"; 2*a; 2*!1000)
5 changes: 5 additions & 0 deletions tests/test_extra_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ def test_extra_spaces(self):
r = klong("a::{ 1 + 1 };a()")
self.assertEqual(r, 2)

def test_vectorized(self):
klong = KlongInterpreter()
r = klong("2*!1000")
self.assertTrue(kg_equal(r, np.arange(1000)*2))

def test_power_type(self):
klong = KlongInterpreter()
r = klong("2^3")
Expand Down
18 changes: 0 additions & 18 deletions tests/test_vectorization.py

This file was deleted.

0 comments on commit 5810cf4

Please sign in to comment.