Sha256: 0281ca1a492cacdbdd7b2d363022f82076269be63b81ec1dd1e0a556a7469c23

Contents?: true

Size: 751 Bytes

Versions: 396

Compression:

Stored size: 751 Bytes

Contents

local grains = require('grains')

describe('grains', function()
  it('square 1', function()
    assert.are.equals(1, grains.square(1))
  end)

  it('square 2', function()
    assert.are.equals(2, grains.square(2))
  end)

  it('square 3', function()
    assert.are.equals(4, grains.square(3))
  end)

  it('square 4', function()
    assert.are.equals(8, grains.square(4))
  end)

  it('square 16', function()
    assert.are.equals(32768, grains.square(16))
  end)

  it('square 32', function()
    assert.are.equals(2147483648, grains.square(32))
  end)

  it('square 64', function()
    assert.are.equals(9223372036854775808, grains.square(64))
  end)

  it('total', function()
    assert.are.equals(18446744073709551615, grains.total())
  end)
end)

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.97 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.96 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.95 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.94 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.93 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.92 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.91 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.90 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.89 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.88 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.87 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.86 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.85 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.84 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.83 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.82 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.81 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.80 tracks/lua/exercises/grains/grains_spec.lua
trackler-2.2.1.79 tracks/lua/exercises/grains/grains_spec.lua