2022-02-20 16:51:05 -06:00
|
|
|
// ignore-tidy-linelength
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set loud_id = "$.index[*][?(@.name=='Loud')].id"
|
2022-02-20 16:51:05 -06:00
|
|
|
pub trait Loud {}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set very_loud_id = "$.index[*][?(@.name=='VeryLoud')].id"
|
|
|
|
//@ count "$.index[*][?(@.name=='VeryLoud')].inner.trait.bounds[*]" 1
|
|
|
|
//@ is "$.index[*][?(@.name=='VeryLoud')].inner.trait.bounds[0].trait_bound.trait.id" $loud_id
|
2022-02-20 16:51:05 -06:00
|
|
|
pub trait VeryLoud: Loud {}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set sounds_good_id = "$.index[*][?(@.name=='SoundsGood')].id"
|
2022-02-20 16:51:05 -06:00
|
|
|
pub trait SoundsGood {}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ count "$.index[*][?(@.name=='MetalBand')].inner.trait.bounds[*]" 2
|
|
|
|
//@ is "$.index[*][?(@.name=='MetalBand')].inner.trait.bounds[0].trait_bound.trait.id" $very_loud_id
|
|
|
|
//@ is "$.index[*][?(@.name=='MetalBand')].inner.trait.bounds[1].trait_bound.trait.id" $sounds_good_id
|
2022-02-20 16:51:05 -06:00
|
|
|
pub trait MetalBand: VeryLoud + SoundsGood {}
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ count "$.index[*][?(@.name=='DnabLatem')].inner.trait.bounds[*]" 2
|
|
|
|
//@ is "$.index[*][?(@.name=='DnabLatem')].inner.trait.bounds[1].trait_bound.trait.id" $very_loud_id
|
|
|
|
//@ is "$.index[*][?(@.name=='DnabLatem')].inner.trait.bounds[0].trait_bound.trait.id" $sounds_good_id
|
2022-02-20 16:51:05 -06:00
|
|
|
pub trait DnabLatem: SoundsGood + VeryLoud {}
|