Sha256: d3345ee84a7fcd1d85d4f019d7908e9054f706d0a6a19348c699c3b52b259a9a

Contents?: true

Size: 836 Bytes

Versions: 5

Compression:

Stored size: 836 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], [10, 232, 190]]
    x = Tracksperanto::Export::NukeScript.new(StringIO.new)
    curves = x.send(:curves_from_tuples, tuples)
    assert_equal "{curve i x6 234.0000 x8 144.0000 x9 231.0000 232.0000} {curve i x6 145.0000 x8 223.0000 x9 189.0000 190.0000}", curves
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tracksperanto-1.7.1 test/export/test_nuke_export.rb
tracksperanto-1.7.0 test/export/test_nuke_export.rb
tracksperanto-1.6.9 test/export/test_nuke_export.rb
tracksperanto-1.6.8 test/export/test_nuke_export.rb
tracksperanto-1.6.7 test/export/test_nuke_export.rb