Cadquos
Explore Marketplace Help
Register Sign In
Cadquos Development

Main Navigation

  • 🏠
    Dashboard
  • 🏢
    Organizations
    8
  • 📁
    Repositories
    8
  • 👥
    Team
  • 🗓️
    Calendar

Workspace

  • 📝
    작업메모
  • 🚀
    시작하기
  • 📝
    빠른 메모
  • 👻
    나의 공간
    3
  • 📝
    작업목록

  • Settings
  • Connections
  • Public Pages
  • Notifications
    3
  • Help Center

John Smith

john@example.com

ByoungSooPark/modeling-app
1
0
Fork 0
You've already forked modeling-app
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
89bc93e4cd3f138e460de1721d4d321aad4f1280
modeling-app/src/wasm-lib/kcl/tests/comparisons_multiple/execution_error.snap

12 lines
320 B
Plaintext
Raw Normal View History

Move tests into simulation (#4487) Replace wasm-lib integration tests with KCL simulation tests.
2024-11-18 16:20:32 -06:00
---
source: kcl/src/simulation_tests.rs
description: Error from executing comparisons_multiple.kcl
---
KCL tests: take fancier snapshots of KCL errors (#4574) Right now our KCL tests output a debug representation of the KCLError value. This works OK, but it's difficult to read an error like "runtime error: SourceRange([44, 48])" because I don't fucking know what the 44th character in my KCL program is. In the modeling app, source ranges are turned into nice red squiggly underlines in the editor. I want nice squiggly underline when I run the Rust unit tests too, damnit. The JS world should NEVER have fancy toys that I, a Rust programmer, cannot access. I deserve this. I need this. So anyway instead of snapshotting debug repr, snapshot a fancy error via the miette library.
2024-11-25 17:28:57 -06:00
KCL Semantic error
× semantic: Expected a number, but found a boolean (true/false value)
╭────
1 │ assert(3 == 3 == 3, "this should not compile")
· ──────
╰────
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0+dev-176-gd179de641c Page: 20ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API