Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1038780 // test_leftArrowScript_defChecked

JavaX fragment (include) [tags: use-pretranspiled]

Uses 679K of libraries. Click here for Pure Java version (37773L/186K).

!include once #1034831 // Gazelle 22 Function Include for Testing

// function definition with checked argument type
svoid test_leftArrowScript_defChecked() {
  S script = [[
      def doubleString s: checked S {
        Math concat s s
      }
      
    assertFails < doubleString 5
    doubleString "1"
  ]];
  
  assertEqualsVerbose("11", leftArrowVerbose(script));
}

Author comment

Began life as a copy of #1037254

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1038780
Snippet name: test_leftArrowScript_defChecked
Eternal ID of this version: #1038780/1
Text MD5: c7d3342acd5b2711615a4218c37924f6
Transpilation MD5: 0f992cc2fdf685279ef7348d375f5c57
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2025-06-02 23:54:56
Source code size: 385 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 255 / 343
Referenced in: [show references]