Skip to content

Commit 25b9b2b

Browse files
author
monkstone
committed
add javadoc for extension
1 parent 65204a6 commit 25b9b2b

3 files changed

Lines changed: 18 additions & 7 deletions

File tree

pom.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
plugin( :compiler, '3.1',
3939
'source' => '1.8',
4040
'target' => '1.8' )
41+
plugin( :javadoc, '2.10.3',
42+
'link' => 'http://processing.github.io/processing-javadocs/core' )
4143
plugin( :jar, '2.4',
4244
'archive' => {
4345
'manifestFile' => 'MANIFEST.MF'

pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
DO NOT EDIT, project now uses polyglot maven, hence pom.rb this file was
5-
autogenerated from the build
4+
Auto generated do no edit
65
7-
-->
6+
-->
87
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
98
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
109
<modelVersion>4.0.0</modelVersion>
@@ -83,6 +82,13 @@ autogenerated from the build
8382
<target>1.8</target>
8483
</configuration>
8584
</plugin>
85+
<plugin>
86+
<artifactId>maven-javadoc-plugin</artifactId>
87+
<version>2.10.3</version>
88+
<configuration>
89+
<link>http://processing.github.io/processing-javadocs/core</link>
90+
</configuration>
91+
</plugin>
8692
<plugin>
8793
<artifactId>maven-jar-plugin</artifactId>
8894
<version>2.4</version>

test/helper_methods_test.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,19 @@ def test_hex_color
2323
assert hex_color(hexstring) == -3381760, 'hexadecimal string color'
2424
assert_raises(StandardError, 'Dodgy Hexstring') do
2525
hex_color(dodgy_hexstring)
26-
end
27-
end
28-
26+
end
27+
assert_raises(StandardError, 'Dodgy Color Conversion') do
28+
hex_color([])
29+
end
30+
end
31+
2932
def test_dist
3033
ax, ay, bx, by = 0, 0, 1.0, 1.0
3134
assert dist(ax, ay, bx, by) == Math.sqrt(2), '2D distance'
3235
by = 0.0
3336
assert dist(ax, ay, bx, by) == 1.0, 'when y dimension is zero'
3437
ax, ay, bx, by = 0, 0, 0.0, 0.0
35-
assert dist(ax, ay, bx, by) == 0.0, 'when x and y dimension are zero'
38+
assert dist(ax, ay, bx, by) == 0.0, 'when x and y dimension are zero'
3639
ax, ay, bx, by = 1, 1, -2.0, -3.0
3740
assert dist(ax, ay, bx, by) == 5, 'classic triangle dimensions'
3841
ax, ay, bx, by, cx, cy = -1, -1, 100, 2.0, 3.0, 100

0 commit comments

Comments
 (0)