44
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
1 #!/usr/bin/ruby
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
2
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
3 class SubTest
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
4 attr_accessor :testDescription, :syntaxDescription, :algoDescription, :syntaxCode, :algoCode, :number, :syntaxResult, :algoResult, :date
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
5 def initialize
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
6 @number = 0
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
7 @testDescription = ""
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
8 @syntaxDescription = ""
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
9 @algoDescription = ""
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
10 @syntaxCode = ""
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
11 @algoCode = ""
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
12 @syntaxResult = -1
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
13 @algoResult = -1
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
14 end
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
15 end
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
16
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
17 class UnitTest
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
18 attr_accessor :methodDescription, :tests, :results, :path, :title, :code, :tainted
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
19
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
20 def initialize
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
21 @methodDescription = ""
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
22 @tests = []
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
23 @results = []
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
24 @tainted = false
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
25 @path = ""
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
26 @title = ""
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
27 @code = ""
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
28 end
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
29 end
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
30
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
31 class Result
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
32 attr_accessor :syntax, :algorithm, :date, :number
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
33 def initialize
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
34 @syntax = -1
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
35 @algorithm = -1
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
36 @date = Time.now
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
37 @number = 0
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
38 end
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
39 end |