// -*-mode: Java; c-basic-offset: 2; -*-
// Tests the recursion in the functions

import junit.framework.*;

function void ilrmain(Object o)
{
  int x = fact(5);
  Assert.assertEquals("fact(5)",x,120);
};

function int fact(int n)
{
  if (n <= 1) return 1;
  else return (n*fact(n-1));
}

