/*
 * Copyright (c) 2005 Absolutely Training Limited
 * 
 * Created on 01-Dec-2005
 */
/**
 * Translation of the Java TestAnswer class into JavaScript
 * 
 * @author paulb
 */
function TestAnswer( answer, numeral ) {
    this.answer = answer;
    this.numeral = numeral;
}

TestAnswer.prototype.getTestText = function() {

    if (DIV_ALIGN == 'right')

    {
		return  this.answer.getAnswerText()+"&nbsp;&nbsp;&nbsp;." + this.getLetter()  ;
    }
	return this.getLetter() + ".&nbsp;&nbsp;&nbsp;" + this.answer.getAnswerText();


};

TestAnswer.prototype.getLetter = function() {
    return this.numeral;
};

TestAnswer.prototype.getAnswer = function() {
    return this.answer;
}; 

TestAnswer.prototype.isCorrect = function() {
	return this.answer.isCorrect();
};
