Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64d5b69

Browse files
committed
predicate log assertion in e2e test
1 parent7bc2683 commit64d5b69

File tree

2 files changed

+10
-8
lines changed
  • test/src/e2e_vm_tests/test_programs/should_pass/predicate_log

2 files changed

+10
-8
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
predicate;
22

3-
usestd::{
4-
inputs::input_coin_owner,
5-
logging::log,
6-
};
7-
83
fnmain()->bool {
9-
log::<Address>(input_coin_owner(0).unwrap());
10-
4+
log(42);
115
true
12-
}
6+
}
7+
8+
#[test]
9+
fntest_predicate_logs() {
10+
assert_eq(main(),true)
11+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
category ="unit_tests_pass"
2+
expected_decoded_test_logs = ["42"]
3+
experimental_new_encoding =true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp