The following test (which tests the pretty printer) works on OS X but fails on Windows.

I suspect this is due to newlines.

module prettyprint-program1

language IceDust

fixture [[
  module [[...]]
  model
    entity Foo {
      i : Int ?
      a : Int = i <+ 0
    }
    entity Bar {}
    entity Baz {}
    relation Bar.baz <-> Baz.bar
  data
    foo:Foo{}
    bar:Bar{
      baz=baz{}
    }
  execute
    foo.a
    1+1
]]

test pretty printer not crashing [[test]] transform "Syntax -> 1) Abstract Syntax Tree -> Pretty Print (Format Code)" to
"module test

model

  entity Foo {
    i : Int?
    a : Int  = i <+ 0
  }

  entity Bar {
  }

  entity Baz {
  }

  relation Bar.baz <-> Baz.bar

data

  foo : Foo { }
  bar : Bar {
    baz = baz { }
  }

execute

  foo.a
  1 + 1
"
Eclipse: org.eclipse.platform.ide 4.6.1.M20160907-1200
Spoofax: org.metaborg.spoofax.eclipse 2.1.0.20161020-125857-master
System: Windows 10 amd64 10.0
Submitted by Daco Harkes on 25 October 2016 at 22:30

On 19 November 2016 at 13:54 Gabriƫl Konat removed tag @gohla

Log in to post comments