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
e17c6e272c6ef72ca47e7e3396e738f7c39a2f85
modeling-app/rust/kcl-lib/e2e/executor/inputs/computed_var.kcl

17 lines
246 B
Plaintext
Raw Normal View History

Fix computed properties of KCL objects (#3246) * Fix computed properties of KCL objects Fixes https://github.com/KittyCAD/modeling-app/issues/3201 * Incorporate Jon's feedback
2024-08-03 00:24:00 -05:00
// This tests computed properties.
const arr = [0, 0, 0, 10]
const i = 3
const ten = arr[i]
Add assertEqual function to KCL stdlib (#3279) Takes a tolerance, because floating-point imprecision.
2024-08-05 11:31:58 -05:00
assertEqual(ten, 10, 0.000001, "oops")
Fix computed properties of KCL objects (#3246) * Fix computed properties of KCL objects Fixes https://github.com/KittyCAD/modeling-app/issues/3201 * Incorporate Jon's feedback
2024-08-03 00:24:00 -05:00
const p = "foo"
const obj = {
foo: 1,
bar: 0,
}
const one = obj[p]
Add assertEqual function to KCL stdlib (#3279) Takes a tolerance, because floating-point imprecision.
2024-08-05 11:31:58 -05:00
assertEqual(one, 1, 0.0000001, "oops")
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0+dev-176-gd179de641c Page: 28ms 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