Skip to content

Commit

Permalink
[test] add a meaningful value field case for RegisterGlobalConstant
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Dec 12, 2024
1 parent b0cf960 commit aa0c986
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

"""Gathering of tests related to Register-global-constant operations."""

from utils.message import RegisterGlobalConstant
from utils.message import Default, RegisterGlobalConstant
from .helper import Flow, Field, TestOperation, pytest_generate_tests


Expand All @@ -33,6 +33,7 @@ def op_class(self):
Field("value", "Value", [
Field.Case({'prim': 'Unit'}, "unit"),
Field.Case({'prim': 'Pair', 'args': [{'string': 'a'}, {'int': 1}]}, "basic"),
Field.Case({"prim": "constant", 'args': [{"string": Default.SCRIPT_EXPR_HASH}]}, "with-constant")
# More test about Micheline in micheline tests
]),
]

0 comments on commit aa0c986

Please sign in to comment.