V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
moonbitlang
V2EX  ›  编程

MoonBit 引入实验性的测试覆盖率统计工具

  •  
  •   moonbitlang · Apr 8, 2024 · 1282 views
    This topic created in 758 days ago, the information mentioned may be changed or developed.

    MoonBit 更新

    支持 array.iter intrinsic 并且已经对标准库中的函数进行标注,从而可以在特定情况下将循环进行内联,以提升运行效率

    /// @intrinsic %array.iter
    pub fn iter[T](self : Array[T], f : (T) -> Unit) -> Unit {
      for i = 0; i < self.length(); i = i + 1 {
        f(self[i])
      }
    }
    

    工具链更新

    1. 支持实验性的测试覆盖率统计工具

    • 工具已经实验性支持 MoonBit Core CI

    • 我们正在优化面向用户的接口

    image.png

    image.png

    2. Alerts pragmas 中默认启用 deprecated 类别的警告,默认关闭 unsafe/throw/raise 类别的警告

    3. 修复 moonfmt 的相关问题

    • 修复带负号的字面量打印后注释错位的问题

    • 修复带负号字面量打印后括号消失的问题

    4. moonrun 支持 UTF-16 字符串的打印

    构建系统更新

    1. expect test 支持处理 Unicode 字符

    8db53436-a5c6-42be-a55c-9770a4cf5065.gif

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5623 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 07:22 · PVG 15:22 · LAX 00:22 · JFK 03:22
    ♥ Do have faith in what you're doing.