Sha256: b48138d87bab24981b1678685e7ad3b3b8f89c06948b506f51584126c6391101
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
require_relative 'helper' return if ci? # TODO: fix tests fail on github actions class TestContext < Test::Unit::TestCase RS = RubySketch P = Processing def context() RS::Context.new P::Window.new end def sprite(*args, **kwargs) RS::Sprite.new(*args, **kwargs) end def test_addSprite() sp = sprite assert_nil context.addSprite() assert_equal sp, context.addSprite(sp) assert_equal sp, context.addSprite(sp, sprite) end def test_removeSprite() sp = sprite assert_nil context.removeSprite() assert_equal sp, context.removeSprite(sp) assert_equal sp, context.removeSprite(sp, sprite) end end# TestContext
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubysketch-0.7.1 | test/test_context.rb |