diff --git a/test/iotaworks/subscript-accumulate.snbt b/test/iotaworks/subscript-accumulate.snbt new file mode 100644 index 0000000..5a935de --- /dev/null +++ b/test/iotaworks/subscript-accumulate.snbt @@ -0,0 +1,10 @@ +[ + {vm: staff}, + {push: {action: 'hexcasting:get_caster'}}, + {push: 21}, + {cast: {action: 'iotaworks:set_subscript'}}, + {push: 21}, + {cast: {action: 'iotaworks:set_subscript'}}, + {cast: {action: 'iotaworks:get_subscript'}}, + {check: 42} +] diff --git a/test/iotaworks/subscript-deserialize-parent.snbt b/test/iotaworks/subscript-deserialize-parent.snbt new file mode 100644 index 0000000..9fd9abf --- /dev/null +++ b/test/iotaworks/subscript-deserialize-parent.snbt @@ -0,0 +1,8 @@ +[ + { vm: staff }, + { push: {"hexcasting:type": "hexcasting:pattern", "hexcasting:data": {parent: {angles: [B; 5B, 4B, 5B], start_dir: 0b}, level: 42}} }, + { cast: { action: 'hexcasting:duplicate' } }, + { check: { action: 'hexcasting:get_caster' } }, + { cast: { action: 'iotaworks:get_subscript' } }, + { check: 42 }, +] diff --git a/test/iotaworks/subscript-negative-store.snbt b/test/iotaworks/subscript-negative-store.snbt new file mode 100644 index 0000000..94b1a92 --- /dev/null +++ b/test/iotaworks/subscript-negative-store.snbt @@ -0,0 +1,15 @@ +[ + {vm: staff}, + {push: 1}, {push: 2}, {push: 3}, + {push: {action: 'hexcasting:swap'}}, + {push: -1}, + {cast: {action: 'iotaworks:set_subscript'}}, + {cast: {action: 'hexcasting:eval'}}, + {check: {'hexcasting:type':'hexcasting:null','hexcasting:data':{}}}, {check: 2}, {check: 1}, + {push: 4}, + {push: {action: 'hexcasting:swap'}}, + {push: -1}, + {cast: {action: 'iotaworks:set_subscript'}}, + {cast: {action: 'hexcasting:eval'}}, + {check: 3} +] diff --git a/test/iotaworks/subscript-positive-dip.snbt b/test/iotaworks/subscript-positive-dip.snbt new file mode 100644 index 0000000..cb3a740 --- /dev/null +++ b/test/iotaworks/subscript-positive-dip.snbt @@ -0,0 +1,9 @@ +[ + {vm: staff}, + {push: 1}, {push: 2}, {push: 3}, + {push: {action: 'hexcasting:swap'}}, + {push: 1}, + {cast: {action: 'iotaworks:set_subscript'}}, + {cast: {action: 'hexcasting:eval'}}, + {check: 3}, {check: 1}, {check: 2} +] diff --git a/test/iotaworks/subscript-serialized.snbt b/test/iotaworks/subscript-serialized.snbt new file mode 100644 index 0000000..c90c212 --- /dev/null +++ b/test/iotaworks/subscript-serialized.snbt @@ -0,0 +1,10 @@ +[ + {vm: staff}, + {push: {action: 'hexcasting:get_caster'}}, + {push: 42}, + {cast: {action: 'iotaworks:set_subscript'}}, + {cast: {action: 'hexcasting:write/local'}}, + {cast: {action: 'hexcasting:read/local'}}, + {cast: {action: 'iotaworks:get_subscript'}}, + {check: 42} +] diff --git a/test/iotaworks/subscript-stored.snbt b/test/iotaworks/subscript-stored.snbt new file mode 100644 index 0000000..c99dbe0 --- /dev/null +++ b/test/iotaworks/subscript-stored.snbt @@ -0,0 +1,8 @@ +[ + {vm: staff}, + {push: {action: 'hexcasting:get_caster'}}, + {push: 42}, + {cast: {action: 'iotaworks:set_subscript'}}, + {cast: {action: 'iotaworks:get_subscript'}}, + {check: 42} +]