Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions e2e/assets/counter_idl_mo/counter_idl.mo
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import A "mo:stdlib/array.mo";
import Prim "mo:prim";

type List<T> = ?{head : T; tail : List<T>};
type List2<T> = { #nil; #cons: (T, List2<T>) };

Expand All @@ -15,16 +18,16 @@ actor {
}
};
public func inc(i: Int, b: Bool, str: Text, vec: [Nat], l: List<Int>, l2: List2<Int>) : async (Int, Bool, Text, [Nat], List<Int>, List2<Int>) {
let arr = Array_tabulate<Nat>(
let arr = A.tabulate<Nat>(
vec.len(),
func (i : Nat) : Nat {
vec[i]+1;
});

var text = "";
for (c in str.chars()) {
let c2 = word32ToChar(charToWord32(c)+1);
text := text # charToText(c2);
let c2 = Prim.word32ToChar(Prim.charToWord32(c)+1);
text := text # Prim.charToText(c2);
};
return (i+1, not b, text, arr, map(l), map2(l2));
};
Expand Down
4 changes: 3 additions & 1 deletion e2e/assets/print_mo/print.mo
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Debug "mo:stdlib/debug.mo";

actor HelloActor {
public func hello() : async () {
debugPrint("Hello, World! from DFINITY \n");
Debug.print("Hello, World! from DFINITY \n");
}
};
2 changes: 1 addition & 1 deletion nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"motoko": {
"ref": "master",
"repo": "ssh://git@github.com/dfinity-lab/motoko",
"rev": "53723e64705f165025e89586607810a5787b05e7",
"rev": "4d6afaa511cd9ae62ad2bb6a3c9a0f79c818ab8d",
"type": "git"
},
"napalm": {
Expand Down