processing 0.5.30 → 0.5.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +0,0 @@
1
- require_relative 'helper'
2
-
3
-
4
- class TestDraw < Test::Unit::TestCase
5
-
6
- def test_rect()
7
- assert_draw 'rect 10, 20, 30, 40'
8
- assert_draw 'rectMode CORNER; rect 10, 20, 30, 40'
9
- assert_draw 'rectMode CORNERS; rect 10, 20, 30, 50'
10
- assert_draw 'rectMode CENTER; rect 40, 50, 30, 40'
11
- assert_draw 'rectMode RADIUS; rect 40, 50, 30, 40'
12
- end
13
-
14
- def test_ellipse()
15
- assert_draw 'ellipse 40, 50, 30, 40', threshold: 0.98
16
- assert_draw 'ellipseMode CORNER; ellipse 10, 20, 30, 40', threshold: 0.98
17
- assert_draw 'ellipseMode CORNERS; ellipse 10, 20, 30, 50', threshold: 0.98
18
- assert_draw 'ellipseMode CENTER; ellipse 40, 50, 30, 40', threshold: 0.98
19
- assert_draw 'ellipseMode RADIUS; ellipse 40, 50, 30, 40', threshold: 0.98
20
- end
21
-
22
- end# TestDraw