<vrand>
1) Shouldn’t line 13 have ‘iso’ before the class name?
<vrand>
2) Ponyc complains on line 20 about the return value of TestResult: "can't find definition of 'TestResult'
<vrand>
3) Lines 21-31 fail to compile with h.expect_eq
<vrand>
4) Lines 21-31 state declaration of "Squares" can't be found and I'm not sure how to pass a value directly to a type; or even call a function on the type
<vrand>
re 1) putting iso before class name fixes the compiler error; is this just a typo in the test?
<vrand>
re 2) removing the TestResult return value resolves the compiler error; am I supposed to be defining a return value in the test instead?
<vrand>
re 3) changing expect_eq to assert_eq fixes the compiler error; is this just a change in the syntax in newer versions of Pony?
<vrand>
re 4) [am unable to solve this one] I understand that Squares is a type and looking to be defined in main.pony but the problem remains that I cannot figure out how to define Squares in a way that accepts a value directly
<vrand>
Sorry for the deluge, just trying to wrap my head around this :)
<jemc>
re 1) this was a syntax change introduced a while ago, but it could be that the test was written beforehand and was never updated to the new syntax
<jemc>
re 3) another somewhat-recent change - `expect_eq` should be `assert_eq`
<jemc>
re 2) another somewhat-recent change - `UnitTest.apply` no longer has a return value - or rather, they return `None`, which is implicit
<jemc>
re 4) you'll want to add a type like `class Squares`
<jemc>
Squares(5).square_of_sums() is syntax sugar for Squares.create(5).square_of_sums()
<jemc>
so you'll want to add a `new ref create(x: U32) => ...` constructor
<vrand>
Ahhhh
<vrand>
I got that I needed to create a class Squares
<vrand>
but wasn't able to figure out how to get it to directly accept, but now that you mention the sugar I do remember that part in the Pony book
<vrand>
Thanks @jemc I'll give that shot!
graaff has quit [Quit: Leaving]
<jemc>
good luck - let us know if you have any more questions
<jemc>
and maybe once you get the hang of things, you might consider sending a PR to exercism to update to the latest ponyc changes (items 1-3)?