testml-lang / testml Goto Github PK
View Code? Open in Web Editor NEWTestML - Multilingual Data Driven Testing
Home Page: https://testml-lang.github.io/testml/
TestML - Multilingual Data Driven Testing
Home Page: https://testml-lang.github.io/testml/
Bridge method names with _ in them do compile, but totally incorrectly.
Either need to forbid _ in method name and give a nice error message, or allow
them to mean same thing as -
. It might be nice to only allow -
; then testml
tests will look consistent.
Old TestML versions only allowed _
and not -
.
https://stackoverflow.com/questions/26575303/create-function-call-dynamically-in-c
https://en.cppreference.com/w/cpp/utility/integer_sequence
struct FnHolder {
virtual json call(std::vector<json>);
};
template <typename Ret, typename...Arg>
struct FnHolderImpl : FnHolder {
template<typename T>
T fromjson(json);
template<>
std::string frojson(json); /* this typechecks etc */
// here other impls
template<typename T>
json tojson(T); /* ....yada yada with all the impls */
Ret (*_func)(Arg...);
FnHolderImpl(Ret (*func)(Arg...)) : _func(func) {} // store func for later
json call(std::vector<json> args) {
if (args.size() != sizeof...(Arg))
throw error;
std::vector<std::any> xs = { fromjson<Arg>(fetch_back(args))... };
Ret value = _func(any_ref_cast<Arg>().do_cast(fetch_back(xs)));
return tojson(value);
}
};
std::unordered_map<std::string /*name*/, FnHolder*> container;
template <typename Ret, typename...Arg>
void register(std::string name, Ret (*func)(Arg...)) {
container[name] = new FnHolderImpl(func);
}
Makefile can set variables and TestML will have to know how to skip tests based
on env variables.
https://github.com/testml-lang/testml/blob/master/src/coffee/lib/testml/run.coffee#L138
Needs an associated test.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.