Skip to content

colezlaw/possum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Possum

This is Possum - a stupid little test of JSR-223 in a web application. I was able to get it working with Groovy, Python (Jython) and Ruby (JRuby).

The script engine initilizes a variable called PEOPLE for you (in Ruby, this is a global variable, so it's called $PEOPLE).

Examples

Python

for p in PEOPLE:
  println "%s %s" % (p.surname, p.givenName)

Javascript

for (i = 0; i < PEOPLE.size(); i++) {
  println(PEOPLE.get(i).surname);
}

Groovy

PEOPLE.each { p ->
  println "${p.surname} ${p.givenName}"
}

Ruby

$PEOPLE.each do|p|
  puts "#{p.surname}, #{p.givenName}"
end

About

Test of JSR-223 using Jython

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages