Stream: show and tell

Topic: R2E Platform


view this post on Zulip Artur Domurad (Oct 25 2024 at 09:36):

Recently I have rewritten my R2E lib to a standalone platform in GO.

https://github.com/adomurad/r2e-platform

I have added a lot of missing stuff, like:

But by implementing the JS execution, I have noticed some nice Roc properties.

Roc can behave a little like JS when its needed :D (thanks to the Decoding ability)

response = browser |> Browser.executeJsWithOutput! "return 50.5 + 5;"
response |> Assert.shouldBe! 55.5

response = browser |> Browser.executeJsWithOutput! "return 50.5 + 5;"
response |> Assert.shouldBe! "55.5"

response = browser |> Browser.executeJsWithOutput! "return true"
response |> Assert.shouldBe! "true"

response = browser |> Browser.executeJsWithOutput! "return true"
response |> Assert.shouldBe! Bool.true

R2E-showcase-gif-2.gif


Last updated: Jul 06 2025 at 12:14 UTC