Add bicycle tube vending machines

This commit is contained in:
Pieter Vander Vennet 2021-01-09 02:11:43 +01:00
parent b9bcf801ef
commit 303485df7e
7 changed files with 50 additions and 13 deletions

View file

@ -47,6 +47,12 @@ new T([
equal(noMatch.matches([{k:"key",v:""}]), true)
equal(noMatch.matches([{k:"otherKey",v:""}]), true)
const multiMatch = FromJSON.Tag("vending~.*bicycle_tube.*") as Tag;
equal(multiMatch.matches([{k:"vending",v:"bicycle_tube"}]), true)
equal(multiMatch.matches([{k:"vending",v:"something;bicycle_tube"}]), true)
equal(multiMatch.matches([{k:"vending",v:"bicycle_tube;something"}]), true)
equal(multiMatch.matches([{k:"vending",v:"xyz;bicycle_tube;something"}]), true)
})],
["Is equivalent test", (() => {