RSpec Code Examples

 

 

DiamondLang::Errors::InvalidAxis
with the invalid axis being i
should eq "A cordinate was created with an axis of i, which isn't in: [x, y, z]"0.00243s
with the invalid axis being w
should eq "A cordinate was created with an axis of w, which isn't in: [x, y, z]"0.00020s
with the invalid axis being a
should eq "A cordinate was created with an axis of a, which isn't in: [x, y, z]"0.00013s
DiamondLang::Errors::InvalidCoordinateValue
with the invalid value being 5f
should eq "5f isn't a valid coordinate."0.00015s
with the invalid value being ~!2!
should eq "~!2! isn't a valid coordinate."0.00012s
DiamondLang::Errors::RelativeCordinateConvertedToArgument
with the default message
should eq "A relative cordinate was converted to an argument."0.00016s
DiamondLang::Errors::TooSmall
with the default message
should eq "Could not fit all commands in the area you selected."0.00014s
DiamondLang::Helpers::Block
with no nbt data
with a data value of 0
with an id of stone
is stone0.00010s
has a data value of 00.00009s
converts to a string0.00012s
converts to a string with a replace method0.00010s
when converted to falling sand
should be a kind of DiamondLang::Helpers::FallingSand0.00158s
is a FallingSand entity0.00016s
has a block id of stone0.00010s
has a time of 10.00013s
with an id of sand
is sand0.00010s
has a data value of 00.00009s
converts to a string0.00011s
converts to a string with a replace method0.00010s
when converted to falling sand
should be a kind of DiamondLang::Helpers::FallingSand0.00017s
is a FallingSand entity0.00009s
has a block id of stone0.00012s
has a time of 10.00009s
with an id of wood
is wood0.00011s
has a data value of 00.00009s
converts to a string0.00010s
converts to a string with a replace method0.00018s
when converted to falling sand
should be a kind of DiamondLang::Helpers::FallingSand0.00016s
is a FallingSand entity0.00015s
has a block id of stone0.00009s
has a time of 10.00009s
with a data value of 1
with an id of stone
is stone0.00009s
has a data value of 10.00011s
converts to a string0.00010s
converts to a string with a replace method0.00010s
when converted to falling sand
should be a kind of DiamondLang::Helpers::FallingSand0.00013s
is a FallingSand entity0.00012s
has a block id of stone0.00009s
has a time of 10.00013s
with an id of sand
is sand0.00009s
has a data value of 10.00011s
converts to a string0.00009s
converts to a string with a replace method0.00009s
when converted to falling sand
should be a kind of DiamondLang::Helpers::FallingSand0.00013s
is a FallingSand entity0.00009s
has a block id of stone0.00013s
has a time of 10.00009s
with an id of wood
is wood0.00011s
has a data value of 10.00008s
converts to a string0.00010s
converts to a string with a replace method0.00009s
when converted to falling sand
should be a kind of DiamondLang::Helpers::FallingSand0.00012s
is a FallingSand entity0.00011s
has a block id of stone0.00009s
has a time of 10.00010s
with a data value of 2
with an id of stone
is stone0.00008s
has a data value of 20.00011s
converts to a string0.00010s
converts to a string with a replace method0.00010s
when converted to falling sand
should be a kind of DiamondLang::Helpers::FallingSand0.00012s
is a FallingSand entity0.00009s
has a block id of stone0.00012s
has a time of 10.00017s
with an id of sand
is sand0.00008s
has a data value of 20.00008s
converts to a string0.00011s
converts to a string with a replace method0.00010s
when converted to falling sand
should be a kind of DiamondLang::Helpers::FallingSand0.00013s
is a FallingSand entity0.00009s
has a block id of stone0.00015s
has a time of 10.00009s
with an id of wood
is wood0.00012s
has a data value of 20.00008s
converts to a string0.00010s
converts to a string with a replace method0.00012s
when converted to falling sand
should be a kind of DiamondLang::Helpers::FallingSand0.00016s
is a FallingSand entity0.00012s
has a block id of stone0.00009s
has a time of 10.00009s