()
| 79 | |
| 80 | #[test] |
| 81 | fn globals_no_duplicates() { |
| 82 | let mut st = SymbolTable::new(); |
| 83 | st.define("foo", 0); |
| 84 | st.mark_global("foo"); |
| 85 | st.mark_global("foo"); |
| 86 | assert_eq!(st.globals().iter().filter(|g| *g == "foo").count(), 1); |
| 87 | } |
| 88 | |
| 89 | #[test] |
| 90 | fn all_returns_all_defined_labels() { |
nothing calls this directly
no test coverage detected