Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Test Scripts for URI handling #222

Open
2 tasks
w2vy opened this issue Jul 6, 2021 · 6 comments
Open
2 tasks

Create Test Scripts for URI handling #222

w2vy opened this issue Jul 6, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request test

Comments

@w2vy
Copy link
Collaborator

w2vy commented Jul 6, 2021

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

  • createURI.rho
  • lookupURI.rho
@w2vy w2vy self-assigned this Jul 6, 2021
@w2vy w2vy added enhancement New feature or request test labels Jul 6, 2021
@w2vy
Copy link
Collaborator Author

w2vy commented Jul 10, 2021

@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
Copy link
Collaborator

@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
Copy link
Contributor

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
Copy link
Collaborator

@w2vy @jimscarver How do we move forward here?

@w2vy
Copy link
Collaborator Author

w2vy commented Aug 28, 2021

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
Copy link
Contributor

jimscarver commented Aug 28, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request test
Projects
None yet
Development

No branches or pull requests

3 participants