Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Is there any more materials on writing those tests?

Is there any more materials on writing those tests? Since I am just joined the TON ecosytem. As far as I understood, in order to test internal command, tests is the only way to run them before deploying to blockchain

  • Is there any more materials on writing those tests 🙏
  • What are pros and cons of doing it with TS vs fift?
  
  
Posted one year ago
Votes Newest

Answers


Yes, test cases are important in coding as they help validate code correctness, identify and fix errors, serve as documentation, facilitate maintenance, and increase confidence in code quality and reliability.

There are a few articles wrote by @KAL
https://blog.ton.org/step-by-step-guide-for-writing-your-first-smart-contract-in-func-2

It's a overview tutorial that brings you from zero to end writing the smart contract in FunC and also with testinYes, test cases are important in coding as they help validate code correctness, identify and fix errors, serve as documentation, facilitate maintenance, and increase confidence in code quality and reliability.

There are a few articles wrote by @KAL
https://blog.ton.org/step-by-step-guide-for-writing-your-first-smart-contract-in-func-2

It's a overview tutorial that brings you from zero to end writing the smart contract in FunC and also with testing cases.

Never the less, here is a fresh tutorial by Kal as well laucnhed recently:
https://ton-community.github.io/tutorials/

Even that, from my latest knowledge, community is working on a "Hardhart", "Foundry" similar test, debugging, deploy all-in-one library, called "Bluepint". Enjoy.

https://github.com/ton-community/blueprint

  
  
wiki
Posted one year ago
18K Views
1 Answer
one year ago
one year ago
Tags