In this test I want to test that my strategy gives back the "A" ast node.

test Query attribute root entity 2 [[
module test
model
  trait A {
    i : Int
  }
  entity B extends A {
    [[i]] : Int
  }
]] run attributename-get-root-get-entityname-test on #1 to "A"

I’d like to be able to write the test as:

test Query attribute root entity 2 [[
module test
model
  trait [[A]] {
    i : Int
  }
  entity B extends A {
    [[i]] : Int
  }
]] run attributename-get-root-get-entityname-test on #2 to #1
Submitted by Daco Harkes on 9 February 2017 at 18:01

On 20 April 2017 at 11:40 Volker tagged !volker

Log in to post comments