Commit Graph

4 Commits

Author SHA1 Message Date
Gav c43d49084f Use BTreeMap rather than HashMap in demo runtime. 2018-02-25 16:58:07 +01:00
Gav Wood dec6e82387 Introduce toy runtime for testing inside substrate. (#66)
* Introduce simple blockchain runtime for substrate tests.

* Remove bad files.

* Add needed wasm binaries.

* Refactoring.

- Repot files in test-runtime.
- Rename troublesome `Joiner::join` to `Joiner::and`.
- Rework `Slicable` to dedup code.

* More fixes and refactoring

* Rebuild substrate test wasm.

* Fix merge errors.

* Rename the disasterously named `to_vec` to `encode`.

Also rename `as_slice_then` to `with_encoded`.

* Tests for toy runtime.

* Fix doc nit
2018-02-09 13:24:30 +01:00
Gav c57784b850 Remove defunct script 2018-02-07 23:39:14 +01:00
Gav 0b138b0fd5 Introduce tests which demonstrate bad wasm compiler. 2018-01-26 19:26:10 +01:00