EduploneExam/answers ChoiceGapAnswer.py,1.7,1.8 MatchingAnswer.py,1.8,1.9 MathAnswer.py,1.9,1.10

Nils Haagen <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneExam/answers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21886/answers

Modified Files:
	ChoiceGapAnswer.py MatchingAnswer.py MathAnswer.py 
Log Message:
tests for all answers (except freetext) - and passing....
tests for all answers (except freetext) - and passing...tests for all answers (except freetext) - and passing....VS: 	answers/MathAnswer.py tests/testBooleanAnswer.py 


Index: MathAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/MathAnswer.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** MathAnswer.py	14 Dec 2004 16:50:30 -0000	1.9
--- MathAnswer.py	14 Dec 2004 17:38:16 -0000	1.10
***************
*** 100,105 ****
          
          '''
!         range = [self.correct-self.tolerance, self.correct-self.tolerance]
!         if value and float(value) and float(value) > range[0] and float(value) < range[1] :
              return True
          else:
--- 100,105 ----
          
          '''
!         range = (self.correct-self.tolerance, self.correct+self.tolerance)
!         if value and float(value) and float(value) >= range[0] and float(value) <= range[1] :
              return True
          else:

Index: ChoiceGapAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/ChoiceGapAnswer.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ChoiceGapAnswer.py	14 Dec 2004 16:50:30 -0000	1.7
--- ChoiceGapAnswer.py	14 Dec 2004 17:38:16 -0000	1.8
***************
*** 96,105 ****
      #methods from Interface IExamAnswer
  
!     def processValue(self):
          '''
          
          '''
!         
!         pass
  
  
--- 96,107 ----
      #methods from Interface IExamAnswer
  
!     def processValue(self, value=''):
          '''
          
          '''
!         if value and value == self.correct:
!             return True
!         else:
!             return False
  
  

Index: MatchingAnswer.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneExam/answers/MatchingAnswer.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** MatchingAnswer.py	14 Dec 2004 16:50:30 -0000	1.8
--- MatchingAnswer.py	14 Dec 2004 17:38:16 -0000	1.9
***************
*** 115,119 ****
              return False
          
!         pass
  
  
--- 115,119 ----
              return False
          
!        
  
  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.