mirror of
				https://github.com/red-data-tools/YouPlot.git
				synced 2025-11-04 11:38:10 +08:00 
			
		
		
		
	Rename Preprocessing to DSVReader
* DSV stands for Delimiter-separated values. * Preprocessing is too vague.
This commit is contained in:
		@@ -2,9 +2,9 @@
 | 
			
		||||
 | 
			
		||||
require_relative '../test_helper'
 | 
			
		||||
 | 
			
		||||
class YouPlotPreprocessingTest < Test::Unit::TestCase
 | 
			
		||||
class YouPlotDSVReaderTest < Test::Unit::TestCase
 | 
			
		||||
  def setup
 | 
			
		||||
    @m = YouPlot::Preprocessing
 | 
			
		||||
    @m = YouPlot::DSVReader
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  test :transpose2 do
 | 
			
		||||
@@ -124,9 +124,4 @@ class YouPlotPreprocessingTest < Test::Unit::TestCase
 | 
			
		||||
                                             [2, 4],
 | 
			
		||||
                                             [3, 5, 6]], false, false))
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  test :count_values do
 | 
			
		||||
    assert_equal([%i[a b c], [3, 2, 1]], @m.count_values(%i[a a a b b c]))
 | 
			
		||||
    assert_equal([%i[c b a], [3, 2, 1]], @m.count_values(%i[a b b c c c]))
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user