# rule tests
# detailed tests are in CompareRuleNumberTests

FEATURE: rules
background:
  type Flight struct {id int unique, wid number optional }  end
thenType: struct

---
title: pass
given:
  type Flight2 Flight {} wid < 10.5 end
  insert Flight2 {id: 55, wid: 10.4 }
when:
  let x = Flight2[55]
then:
value:a:Flight2 {
 vid:55
 vwid:10.4
}

---
title: fail
given:
  type Flight2 Flight {} wid < 10.5 end
  insert Flight2 {id: 55, wid: 10.5 }
when:
  let x = Flight2[55];ERROR: rule-compare


#we assume nulls are handle the same as int
