flame_timewarp_extractor 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.autotest +23 -0
- data/History.txt +4 -0
- data/Manifest.txt +5 -0
- data/lib/flame_timewarp_extractor.rb +10 -6
- data/test/.DS_Store +0 -0
- data/test/samples/TW_016_010_v01.timewarp +134 -0
- data/test/samples/TW_016_010_v01_Baked.timewarp +6109 -0
- data/test/samples/my_output.framecurve.txt +815 -0
- data/test/test_twextract.rb +4 -7
- metadata +10 -5
data/test/test_twextract.rb
CHANGED
@@ -5,7 +5,7 @@ require "stringio"
|
|
5
5
|
class TestTwextract < Test::Unit::TestCase
|
6
6
|
def test_parse_with_basic_baked_setup
|
7
7
|
io = StringIO.new
|
8
|
-
FlameTimewarpExtractor.new.extract(File.dirname(__FILE__) + "/samples/TW_015_010_v01_Baked.timewarp", io)
|
8
|
+
FlameTimewarpExtractor.new.extract(File.dirname(__FILE__) + "/samples/TW_015_010_v01_Baked.timewarp", :destination => io)
|
9
9
|
|
10
10
|
compare_outputs(File.read(File.dirname(__FILE__) + "/samples/output.txt"), io.string)
|
11
11
|
end
|
@@ -14,8 +14,8 @@ class TestTwextract < Test::Unit::TestCase
|
|
14
14
|
interpolated_io = StringIO.new
|
15
15
|
baked_io = StringIO.new
|
16
16
|
|
17
|
-
FlameTimewarpExtractor.new.extract(File.dirname(__FILE__) + "/samples/TW_016_010_v01.timewarp", interpolated_io)
|
18
|
-
FlameTimewarpExtractor.new.extract(File.dirname(__FILE__) + "/samples/TW_016_010_v01_Baked.timewarp", baked_io)
|
17
|
+
FlameTimewarpExtractor.new.extract(File.dirname(__FILE__) + "/samples/TW_016_010_v01.timewarp", :destination => interpolated_io)
|
18
|
+
FlameTimewarpExtractor.new.extract(File.dirname(__FILE__) + "/samples/TW_016_010_v01_Baked.timewarp", :destination => baked_io)
|
19
19
|
|
20
20
|
compare_outputs(baked_io.string, interpolated_io.string)
|
21
21
|
end
|
@@ -23,13 +23,10 @@ class TestTwextract < Test::Unit::TestCase
|
|
23
23
|
private
|
24
24
|
D = 0.1
|
25
25
|
|
26
|
+
# TODO: this one is not working properly
|
26
27
|
def compare_outputs(ref, out)
|
27
28
|
ref = ref.split("\n")
|
28
29
|
out = out.split("\n")
|
29
|
-
|
30
|
-
puts ref
|
31
|
-
puts out
|
32
|
-
|
33
30
|
ref.zip(out).each_with_index do | (reference_line, output_line), lineno |
|
34
31
|
assert_not_nil output_line, "at #{lineno} the output should not be shorter than the reference"
|
35
32
|
assert_not_nil reference_line, "at #{lineno} the output should not be longer than the reference"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flame_timewarp_extractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
-
-
|
8
|
-
- 1
|
7
|
+
- 2
|
9
8
|
- 0
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 2.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Julik
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-20 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -61,13 +61,18 @@ extra_rdoc_files:
|
|
61
61
|
- History.txt
|
62
62
|
- Manifest.txt
|
63
63
|
files:
|
64
|
+
- .autotest
|
64
65
|
- History.txt
|
65
66
|
- Manifest.txt
|
66
67
|
- README.rdoc
|
67
68
|
- Rakefile
|
68
69
|
- bin/flametwextract
|
69
70
|
- lib/flame_timewarp_extractor.rb
|
71
|
+
- test/.DS_Store
|
70
72
|
- test/samples/TW_015_010_v01_Baked.timewarp
|
73
|
+
- test/samples/TW_016_010_v01.timewarp
|
74
|
+
- test/samples/TW_016_010_v01_Baked.timewarp
|
75
|
+
- test/samples/my_output.framecurve.txt
|
71
76
|
- test/samples/output.txt
|
72
77
|
- test/test_twextract.rb
|
73
78
|
- .gemtest
|