()
| 88 | |
| 89 | |
| 90 | def test_RuleSet(): |
| 91 | net = ( |
| 92 | { |
| 93 | add: ( |
| 94 | { |
| 95 | VAR: ({VAR: ({}, [1]), 1: ({}, [0])}, []), |
| 96 | inc: ({VAR: ({inc: ({VAR: ({}, [2, 3])}, [])}, [])}, []), |
| 97 | }, |
| 98 | [], |
| 99 | ), |
| 100 | list: ({VAR: ({}, [5])}, []), |
| 101 | sum: ({list: ({VAR: ({VAR: ({VAR: ({}, [4])}, [])}, [])}, [])}, []), |
| 102 | }, |
| 103 | [], |
| 104 | ) |
| 105 | assert rs._net == net |
| 106 | assert rs.rules == rules |
| 107 | |
| 108 | |
| 109 | def test_matches(): |
nothing calls this directly
no outgoing calls
no test coverage detected