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

21
LINES

< > BotCompany Repo | #1021053 // AIRIS Test [loads AIRIS, no actual test yet]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 36155K of libraries. Click here for Pure Java version (5954L/42K).

!7

lib 1400166 // jython 2.7

import org.python.core.*;
import org.python.util.*;

p-exp {
  time "Make Interpreter" {
    PythonInterpreter.initialize(new Properties, litprop("python.path" := f2s(userDir("dev/AIRIS_Public-master"))), new S[0]);
    new PythonInterpreter py;
  }
  time "Test Interpreter" {
    assertEqualsVerbose("3", str(py.eval("1+2")));
  }
  print("System state: " + py.getSystemState());
  py.exec(linesLL(
    "from constants import *",
    "from airis_jython import AIRIS"
  ));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021053
Snippet name: AIRIS Test [loads AIRIS, no actual test yet]
Eternal ID of this version: #1021053/17
Text MD5: 6e450bcd363210032db077ab6bf2ca3b
Transpilation MD5: d5d06a804aba4b37b9a6a82ff2180374
Author: stefan
Category: javax / a.i. / airis
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-02 16:14:57
Source code size: 527 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 289 / 804
Version history: 16 change(s)
Referenced in: [show references]