Comments (4)
The examples from the slides deck are actually links 😁 -- you can follow them from https://slides.com/warpfork/testmark#/9/1 , and the couple of pages below that (hit spacebar to progress to next-slide).
Here are some of those links extracted:
- In IPLD specs:
- Source, raw: https://raw.githubusercontent.com/ipld/ipld/756520d4744b8c4b90097d99ab8b93ac87983327/specs/selectors/fixtures/selector-fixtures-1.md
- As rendered on Github: https://github.com/ipld/ipld/blob/756520d4744b8c4b90097d99ab8b93ac87983327/specs/selectors/fixtures/selector-fixtures-1.md
- As rendered in a website: https://ipld.io/specs/selectors/fixtures/selector-fixtures-1/
- Code executing those: https://github.com/ipld/go-ipld-prime/blob/37f875b8e4c89ef768a0e0f952d2af0644f91b3a/traversal/selector/spec_test.go
- In Warpforge documentation:
- Source, raw: https://raw.githubusercontent.com/warpfork/warpforge/5be2023bdb45c0aa0db599b10c7c17b8bd0d168a/examples/100-formula-parse/example-formulas.md
- As rendered on Github: https://github.com/warpfork/warpforge/blob/5be2023bdb45c0aa0db599b10c7c17b8bd0d168a/examples/100-formula-parse/example-formulas.md
- (no website for this one, this project hasn't bothered yet -- github rendering is good enough!)
- Code executing those: https://github.com/warpfork/warpforge/blob/5be2023bdb45c0aa0db599b10c7c17b8bd0d168a/wfapi/formula_spec_test.go#L19-L32
from go-testmark.
I also recently saw someone start using line numbers from testmark hunks as part of their test failure messages, which seems neat: ipld/go-datalark@82b8d0f
... there's a lot of other testmark example setup in there, too, which might be another fun source to look at. Some of it is very cool, because that project involves an interpreted language, so it's actually got "executable" script hunks and their outputs paired together as tests!
from go-testmark.
Come to think of it, you could actually use the testexec extension package in this same repo as a good example -- if I had to highlight some lines to focus on, probably these in particular show the heart of it:
go-testmark/testexec/testexec.go
Lines 222 to 300 in 61f3795
from go-testmark.
Hope these examples help!
If you end up producing more, please comment with them! It would be a joy to see :)
from go-testmark.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-testmark.