rchain-community / rgov

RChain liquid democracy demo: capability sharing, mailbox, directory, chat, ...
https://rchain-community.github.io/rgov/
10 stars 14 forks source link

Create Test Scripts for URI handling #222

Open w2vy opened 3 years ago

w2vy commented 3 years ago

After discussion with Jim the next set of test scripts will be for:

w2vy commented 3 years ago

@jimscarver I have the basic test creating a simple string "Hello World", I recall your one example of Nil | 2+2 can you suggest more complex examples, likely rholang for me to test. I am especially interested in examples that will create different data types to be returned @Bill-Kunj you may have some good suggestions as well

Bill-Kunj commented 3 years ago

@jimscarver I have the basic test creating a simple string "Hello World", I recall your one example of Nil | 2+2 can you suggest more complex examples, likely rholang for me to test. I am especially interested in examples that will create different data types to be returned @Bill-Kunj you may have some good suggestions as well

@w2vy Not sure what I can contribute here. Let @jimscarver take the lead on this.

jimscarver commented 3 years ago

I recall your one example of Nil | 2+2 can you suggest more complex examples, likely rholang for me to test.

not sure what you mean. you can convert types to a string using string interpolation

("${num}"%%{"num": 12345}).slice(1,4) == "234"
"${uri}"%%{"uri": `rho:id:xxxxxxxx`} == "rho:id:xxxxxxxx"
Bill-Kunj commented 3 years ago

@w2vy @jimscarver How do we move forward here?

w2vy commented 3 years ago

I think the test script for defining an expression or constant will be different from creating a URI that is an entire rholang function/file just due to the way the [match] parsing is done. A match on works for expressions not entire functions

I think

jimscarver commented 3 years ago

just insertArbitraey and then lookup and check for equality.

On Sat, Aug 28, 2021 at 6:41 AM Tom Moulton @.***> wrote:

I think the test script for defining an expression or constant will be different from creating a URI that is an entire rholang function/file just due to the way the [match] parsing is done. A match on works for expressions not entire functions

I think

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rchain-community/rgov/issues/222#issuecomment-907608027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXFQEIWARAXUMFZSTPQRLTT7C4N7ANCNFSM474KDR4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.