From 5076bc1f931edd35e3e8ef3d0e48bd74de9bbbb7 Mon Sep 17 00:00:00 2001 From: maciektr Date: Mon, 28 Oct 2024 12:09:56 +0100 Subject: [PATCH] Fix tests for cairo-run args validation (#1691) Blocked by https://github.com/starkware-libs/cairo/pull/6525 --- Cargo.lock | 62 +++++++++---------- Cargo.toml | 48 +++++++------- extensions/scarb-cairo-run/tests/arguments.rs | 9 ++- 3 files changed, 59 insertions(+), 60 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8e8c0950b..2fe9e0dc1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -563,7 +563,7 @@ dependencies = [ [[package]] name = "cairo-lang-casm" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-utils", "indoc", @@ -576,7 +576,7 @@ dependencies = [ [[package]] name = "cairo-lang-compiler" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "anyhow", "cairo-lang-defs", @@ -601,7 +601,7 @@ dependencies = [ [[package]] name = "cairo-lang-debug" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-utils", ] @@ -609,7 +609,7 @@ dependencies = [ [[package]] name = "cairo-lang-defs" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-debug", "cairo-lang-diagnostics", @@ -625,7 +625,7 @@ dependencies = [ [[package]] name = "cairo-lang-diagnostics" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-debug", "cairo-lang-filesystem", @@ -636,7 +636,7 @@ dependencies = [ [[package]] name = "cairo-lang-doc" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-defs", "cairo-lang-filesystem", @@ -651,7 +651,7 @@ dependencies = [ [[package]] name = "cairo-lang-eq-solver" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-utils", "good_lp", @@ -660,7 +660,7 @@ dependencies = [ [[package]] name = "cairo-lang-filesystem" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-debug", "cairo-lang-utils", @@ -675,7 +675,7 @@ dependencies = [ [[package]] name = "cairo-lang-formatter" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "anyhow", "cairo-lang-diagnostics", @@ -694,7 +694,7 @@ dependencies = [ [[package]] name = "cairo-lang-language-server" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -734,7 +734,7 @@ dependencies = [ [[package]] name = "cairo-lang-lowering" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -799,7 +799,7 @@ checksum = "c49906d6b1c215e5814be7c5c65ecf2328898b335bee8c2409ec07cfb5530daf" [[package]] name = "cairo-lang-parser" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-diagnostics", "cairo-lang-filesystem", @@ -818,7 +818,7 @@ dependencies = [ [[package]] name = "cairo-lang-plugins" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-defs", "cairo-lang-diagnostics", @@ -836,7 +836,7 @@ dependencies = [ [[package]] name = "cairo-lang-proc-macros" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-debug", "quote", @@ -846,7 +846,7 @@ dependencies = [ [[package]] name = "cairo-lang-project" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-filesystem", "cairo-lang-utils", @@ -858,7 +858,7 @@ dependencies = [ [[package]] name = "cairo-lang-runner" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "ark-ff", "ark-secp256k1", @@ -889,7 +889,7 @@ dependencies = [ [[package]] name = "cairo-lang-semantic" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -914,7 +914,7 @@ dependencies = [ [[package]] name = "cairo-lang-sierra" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "anyhow", "cairo-lang-utils", @@ -940,7 +940,7 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-ap-change" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-eq-solver", "cairo-lang-sierra", @@ -955,7 +955,7 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-gas" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-eq-solver", "cairo-lang-sierra", @@ -970,7 +970,7 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-generator" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -993,7 +993,7 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-to-casm" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "assert_matches", "cairo-lang-casm", @@ -1013,7 +1013,7 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-type-size" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-sierra", "cairo-lang-utils", @@ -1022,7 +1022,7 @@ dependencies = [ [[package]] name = "cairo-lang-starknet" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -1051,7 +1051,7 @@ dependencies = [ [[package]] name = "cairo-lang-starknet-classes" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-casm", "cairo-lang-sierra", @@ -1073,7 +1073,7 @@ dependencies = [ [[package]] name = "cairo-lang-syntax" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-debug", "cairo-lang-filesystem", @@ -1088,7 +1088,7 @@ dependencies = [ [[package]] name = "cairo-lang-syntax-codegen" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "genco", "xshell", @@ -1097,7 +1097,7 @@ dependencies = [ [[package]] name = "cairo-lang-test-plugin" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -1123,7 +1123,7 @@ dependencies = [ [[package]] name = "cairo-lang-test-runner" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -1145,7 +1145,7 @@ dependencies = [ [[package]] name = "cairo-lang-test-utils" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "cairo-lang-formatter", "cairo-lang-utils", @@ -1157,7 +1157,7 @@ dependencies = [ [[package]] name = "cairo-lang-utils" version = "2.8.4" -source = "git+https://github.com/starkware-libs/cairo?rev=e1ae8f2744eeedc54dbd96924c0ac73479e98c8b#e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" +source = "git+https://github.com/starkware-libs/cairo?rev=1f0db2fbb40064b267d8a0fae3ed4ea612123d23#1f0db2fbb40064b267d8a0fae3ed4ea612123d23" dependencies = [ "env_logger", "hashbrown 0.14.5", diff --git a/Cargo.toml b/Cargo.toml index 9eef103fa..ebf19856a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,30 +34,30 @@ anyhow = "1" assert_fs = "1" async-trait = "0.1" axum = { version = "0.6", features = ["http2"] } -cairo-lang-casm = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-debug = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-doc = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-formatter = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-language-server = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-parser = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-project = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-runner = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-sierra-generator = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-sierra-to-casm = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-sierra-type-size = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-test-runner = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b" } -cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "e1ae8f2744eeedc54dbd96924c0ac73479e98c8b", features = ["env_logger"] } +cairo-lang-casm = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-debug = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-doc = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-formatter = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-language-server = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-parser = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-project = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-runner = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-sierra-generator = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-sierra-to-casm = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-sierra-type-size = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-test-runner = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23" } +cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "1f0db2fbb40064b267d8a0fae3ed4ea612123d23", features = ["env_logger"] } camino = { version = "1", features = ["serde1"] } cargo_metadata = ">=0.18" clap = { version = "4", features = ["derive", "env", "string"] } diff --git a/extensions/scarb-cairo-run/tests/arguments.rs b/extensions/scarb-cairo-run/tests/arguments.rs index 08f70979a..8a622e6ae 100644 --- a/extensions/scarb-cairo-run/tests/arguments.rs +++ b/extensions/scarb-cairo-run/tests/arguments.rs @@ -72,7 +72,6 @@ fn can_deserialize_big_number() { } #[test] -#[ignore = "number of args validation removed in cairo-lang-runner cairo#6489"] fn invalid_number_of_args() { let t = TempDir::new().unwrap(); setup_fib_three_felt_args(&t); @@ -129,7 +128,7 @@ fn array_instead_of_felt() { error: failed to run the function Caused by: - Operation failed: 14:0 - 1, offsets cant be negative + Function param 2 only partially contains argument 2. error: process did not exit successfully: exit code: 1 "#}); #[cfg(not(windows))] @@ -140,7 +139,7 @@ fn array_instead_of_felt() { error: failed to run the function Caused by: - Operation failed: 14:0 - 1, offsets cant be negative + Function param 2 only partially contains argument 2. "#}); } @@ -273,7 +272,7 @@ fn invalid_struct_deserialization() { error: failed to run the function Caused by: - Couldn't compute operand op1. Unknown value for memory cell 1:12 + Function expects arguments of size 3 and received 2 instead. error: process did not exit successfully: exit code: 1 "#}); #[cfg(not(windows))] @@ -284,7 +283,7 @@ fn invalid_struct_deserialization() { error: failed to run the function Caused by: - Couldn't compute operand op1. Unknown value for memory cell 1:12 + Function expects arguments of size 3 and received 2 instead. "#}); }