All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fitbook.CalculateQuoted Maven / Gradle / Ivy

Go to download

FitLibrary provides general-purpose fixtures (and runners) for storytests with Fit and FitNesse.

The newest version!
/*
 * @author Rick Mugridge 18/05/2004
 * Copyright (c) 2004 Rick Mugridge, University of Auckland, NZ
 * Released under the terms of the GNU General Public License version 2 or later.
 */
package fitbook;

/**
 *
 */
public class CalculateQuoted extends fit.ColumnFixture {
	public String input;
	
	public int countSpaces() {
		int count = 0;
		for (int i = 0; i < input.length(); i++)
			if (input.charAt(i) == ' ')
				count++;
		return count;
	}
	public int countChars() {
		return input.length()-2;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy