Skip to content

Commit 4cf5ca8

Browse files
committed
Added numpy test to test app
1 parent 2472b03 commit 4cf5ca8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/testapp/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
FixedSizeButton:
7979
text: 'test ctypes'
8080
on_press: app.test_ctypes()
81+
FixedSizeButton:
82+
text: 'test numpy'
83+
on_press: app.test_numpy()
8184
Widget:
8285
size_hint_y: None
8386
height: 1000
@@ -137,6 +140,12 @@ def test_pyjnius(self, *args):
137140
def test_ctypes(self, *args):
138141
import ctypes
139142

143+
def test_numpy(self, *args):
144+
import numpy
145+
146+
print(numpy.zeros(5))
147+
print(numpy.arange(5))
148+
print(numpy.random.random((3, 3)))
140149

141150

142151
TestApp().run()

0 commit comments

Comments
 (0)