jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang
vrand has joined #ponylang
vrand has quit [Remote host closed the connection]
vrand has joined #ponylang
vrand has quit [Ping timeout: 244 seconds]
vrand has joined #ponylang
srenatus[m] has quit [Ping timeout: 244 seconds]
vrand has quit [Quit: Mutter: http://www.mutterirc.com]
vrand has joined #ponylang
srenatus[m] has joined #ponylang
vrand has quit [Client Quit]
vrand has joined #ponylang
vrand has quit [Remote host closed the connection]
jemc has quit [Ping timeout: 258 seconds]
kulibali_ has joined #ponylang
kulibali has quit [Ping timeout: 265 seconds]
kulibali_ is now known as kulibali
Dyserna__ has joined #ponylang
Dyserna_ has quit [Ping timeout: 250 seconds]
kulibali_ has joined #ponylang
kulibali has quit [Ping timeout: 276 seconds]
kulibali_ is now known as kulibali
ericbmerritt has quit [Ping timeout: 264 seconds]
ericbmerritt has joined #ponylang
kulibali_ has joined #ponylang
kulibali has quit [Ping timeout: 276 seconds]
kulibali_ is now known as kulibali
c355e3b has quit [Quit: Connection closed for inactivity]
montanonic has quit [Ping timeout: 265 seconds]
Praetonus has quit [Quit: Leaving]
mcguire1 has quit [Ping timeout: 250 seconds]
graaff has joined #ponylang
jemc has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
graaff has quit [Quit: Leaving]
montanonic has joined #ponylang
amclain has quit [Quit: Leaving]
montanonic has quit [Ping timeout: 250 seconds]
gsteed has joined #ponylang
runehog_ has joined #ponylang
runehog has quit [Ping timeout: 240 seconds]
_andre has joined #ponylang
c355e3b has joined #ponylang
runehog has joined #ponylang
runehog_ has quit [Ping timeout: 264 seconds]
jonrh has quit [Ping timeout: 250 seconds]
jonrh has joined #ponylang
strmpnk has quit [Ping timeout: 250 seconds]
mankyKitty has quit [Ping timeout: 250 seconds]
strmpnk has joined #ponylang
mankyKitty has joined #ponylang
gsteed has quit [Read error: Connection reset by peer]
Praetonus has joined #ponylang
montanonic has joined #ponylang
mcguire1 has joined #ponylang
jemc has joined #ponylang
gsteed has joined #ponylang
mcguire1 has quit [Ping timeout: 240 seconds]
graaff has joined #ponylang
unbalanced has joined #ponylang
vrand has joined #ponylang
amclain has joined #ponylang
unbalanced has quit [Quit: WeeChat 1.5]
<vrand> Hey all, a bit new to Pony and I'm working through the Pony track on exercism.io. The tests are a bit confusing to me - https://gist.github.com/vrand/ac62f30a3895183618fc4d7bc213e00b
<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)?
vrand has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
vrand has joined #ponylang
vrand has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
montanonic has quit [Ping timeout: 240 seconds]
montanonic has joined #ponylang
vrand has joined #ponylang
_andre has quit [Quit: leaving]
Praetonus has quit [Quit: Leaving]
montanonic has quit [Ping timeout: 276 seconds]
montanonic has joined #ponylang
mcguire1 has joined #ponylang
vrand has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jemc has quit [Ping timeout: 244 seconds]
jemc has joined #ponylang
kulibali has quit [Quit: Going offline, see ya! (www.adiirc.com)]