mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-15 23:48:10 +08:00
Add the Processing module (tentative)
This commit is contained in:
11
test/youplot/backends/processing_test.rb
Normal file
11
test/youplot/backends/processing_test.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class YouPlotCommandTest < Test::Unit::TestCase
|
||||
test :count_values do
|
||||
@m = YouPlot::Backends::Processing
|
||||
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