rename qwaiter to mozo

This commit is contained in:
2025-09-20 17:35:58 -05:00
parent 7212d9041e
commit 0e051b1f93
99 changed files with 189 additions and 168 deletions
+21
View File
@@ -0,0 +1,21 @@
# encoding: UTF-8
require 'spec_helper'
describe Mozo::Distribution do
describe 'distribute_lattice' do
{
[20 , 10, 4] => [10.0, 5.0],
[10 , 10, 4] => [ 5.0, 5.0],
[20 , 5, 4] => [ 5.0, 5.0],
[30 , 10, 4] => [ 7.5, 10.0],
[10 , 30, 4] => [10.0, 7.5],
[10 , 10, 3] => [ 5.0, 5.0],
[13.6, 40, 7] => [ 6.8, 10.0],
[13.6, 40, 9] => [ 6.8, 8.0],
[13.6, 40, 10] => [ 6.8, 8.0],
[40, 40, 23] => [ 8.0, 8.0],
}.each do |params, result|
it("handles #{params.join(', ')}"){ Mozo::Distribution.distribute_lattice(*params).should == result }
end
end
end