Sha256: 10fa4f8845db71617c09385b248ba85abc9796fbc224c3e20962058b0cc453ac

Contents?: true

Size: 796 Bytes

Versions: 24

Compression:

Stored size: 796 Bytes

Contents

require File.dirname(__FILE__) + '/../helper'

class NukeExportTest < Test::Unit::TestCase
  include ParabolicTracks
  P = File.dirname(__FILE__) + "/samples/ref_NukeScript.nk"
  
  def test_export_output_written
    ensure_same_output Tracksperanto::Export::NukeScript, P
  end
  
  def test_exporter_meta
    assert_equal "nuke.nk", Tracksperanto::Export::NukeScript.desc_and_extension
    assert_equal "Nuke .nk script", Tracksperanto::Export::NukeScript.human_name
  end
  
  def test_tuples_to_curves
    tuples = [[6, 234, 145], [8, 144, 223], [9, 231, 189]]
    x = Tracksperanto::Export::NukeScript.new(StringIO.new)
    curves = x.send(:curves_from_tuples, tuples)
    assert_equal "{curve i x6 234.0000 x8 144.0000 231.0000} {curve i x6 145.0000 x8 223.0000 189.0000}", curves
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
tracksperanto-1.6.6 test/export/test_nuke_export.rb
tracksperanto-1.6.5 test/export/test_nuke_export.rb
tracksperanto-1.6.4 test/export/test_nuke_export.rb
tracksperanto-1.6.3 test/export/test_nuke_export.rb
tracksperanto-1.6.2 test/export/test_nuke_export.rb
tracksperanto-1.6.1 test/export/test_nuke_export.rb
tracksperanto-1.6.0 test/export/test_nuke_export.rb
tracksperanto-1.5.7 test/export/test_nuke_export.rb
tracksperanto-1.5.6 test/export/test_nuke_export.rb
tracksperanto-1.5.5 test/export/test_nuke_export.rb
tracksperanto-1.5.4 test/export/test_nuke_export.rb
tracksperanto-1.5.3 test/export/test_nuke_export.rb
tracksperanto-1.5.2 test/export/test_nuke_export.rb
tracksperanto-1.5.1 test/export/test_nuke_export.rb
tracksperanto-1.5.0 test/export/test_nuke_export.rb
tracksperanto-1.4.0 test/export/test_nuke_export.rb
tracksperanto-1.2.6 test/export/test_nuke_export.rb
tracksperanto-1.3.1 test/export/test_nuke_export.rb
tracksperanto-1.3.0 test/export/test_nuke_export.rb
tracksperanto-1.2.4 test/export/test_nuke_export.rb