test/test_edl.rb in edl-0.1.0 vs test/test_edl.rb in edl-0.1.1
- old
+ new
@@ -16,10 +16,11 @@
FORTY_FIVER = File.dirname(__FILE__) + '/samples/45S_SAMPLE.EDL'
AVID_REVERSE = File.dirname(__FILE__) + '/samples/REVERSE.EDL'
SPEEDUP_AND_FADEOUT = File.dirname(__FILE__) + '/samples/SPEEDUP_AND_FADEOUT.EDL'
SPEEDUP_REVERSE_AND_FADEOUT = File.dirname(__FILE__) + '/samples/SPEEDUP_REVERSE_AND_FADEOUT.EDL'
FCP_REVERSE = File.dirname(__FILE__) + '/samples/FCP_REVERSE.EDL'
+PLATES = File.dirname(__FILE__) + '/samples/PLATES.EDL'
class String
def tc(fps = Timecode::DEFAULT_FPS)
Timecode.parse(self, fps)
end
@@ -404,10 +405,11 @@
'022 008C V C 08:08:01:23 08:08:02:18 01:00:27:05 01:00:28:00',
'023 008C V C 08:07:30:02 08:07:30:21 01:00:28:00 01:00:28:19',
'024 AX V C 00:00:00:00 00:00:01:00 01:00:28:19 01:00:29:19',
'025 BL V C 00:00:00:00 00:00:00:00 01:00:29:19 01:00:29:19',
'025 GEN V D 025 00:00:55:10 00:00:58:11 01:00:29:19 01:00:32:20',
+ '002 REDACTED V C 03:09:00:13 03:09:55:19 01:00:43:12 01:01:38:18',
]
specify "produce an Event" do
m = EDL::EventMatcher.new(25)
@@ -599,9 +601,14 @@
end
context "A complex EDL passed via Parser should" do
specify "parse without errors" do
assert_nothing_raised { EDL::Parser.new.parse(File.open(FORTY_FIVER)) }
+ end
+
+ specify "parse the plates EDL with many events" do
+ evts = EDL::Parser.new.parse(File.read(PLATES))
+ assert_equal 3, evts.length
end
# TODO: this does not belong here
specify "be properly rewritten from zero" do
complex = EDL::Parser.new.parse(File.open(FORTY_FIVER))
\ No newline at end of file