diff options
Diffstat (limited to 'tests/rustdoc-json/enums/discriminant/basic.rs')
-rw-r--r-- | tests/rustdoc-json/enums/discriminant/basic.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc-json/enums/discriminant/basic.rs b/tests/rustdoc-json/enums/discriminant/basic.rs new file mode 100644 index 000000000..06906df3b --- /dev/null +++ b/tests/rustdoc-json/enums/discriminant/basic.rs @@ -0,0 +1,12 @@ +#[repr(i8)] +pub enum Ordering { + // @is "$.index[*][?(@.name=='Less')].inner.discriminant.expr" '"-1"' + // @is "$.index[*][?(@.name=='Less')].inner.discriminant.value" '"-1"' + Less = -1, + // @is "$.index[*][?(@.name=='Equal')].inner.discriminant.expr" '"0"' + // @is "$.index[*][?(@.name=='Equal')].inner.discriminant.value" '"0"' + Equal = 0, + // @is "$.index[*][?(@.name=='Greater')].inner.discriminant.expr" '"1"' + // @is "$.index[*][?(@.name=='Greater')].inner.discriminant.value" '"1"' + Greater = 1, +} |