DictionaryWrites.java
/**
* Copyright 2010,2021 Nikolas S Boyd.
Permission is granted to copy this work provided this copyright statement is retained in all copies.
*/
package Hoot.Tests;
import Hoot.Runtime.Functions.*;
import Hoot.Runtime.Faces.*;
import Hoot.Runtime.Values.*;
import Hoot.Runtime.Blocks.*;
import Smalltalk.Core.*;
import Smalltalk.Blocks.*;
import Smalltalk.Magnitudes.*;
import Hoot.Behaviors.*;
import Hoot.Behaviors.Nil;
import Hoot.Behaviors.Object;
import Hoot.Behaviors.True;
import Hoot.Behaviors.False;
import Hoot.Behaviors.Boolean;
import Hoot.Magnitudes.*;
import Hoot.Magnitudes.Integer;
import Hoot.Magnitudes.Character;
import Hoot.Magnitudes.Float;
import Hoot.Magnitudes.Double;
import Hoot.Collections.*;
import Hoot.Collections.String;
import static Hoot.Magnitudes.SmallInteger.*;
import Hoot.Magnitudes.Integer;
public class DictionaryWrites extends TestableClosure
{
protected Integer key1 = SmallInteger.from(1);
protected Integer key2 = SmallInteger.from(2);
protected Integer key3 = SmallInteger.from(3);
protected Integer key4 = SmallInteger.from(4);
protected Integer key5 = SmallInteger.from(5);
protected Integer key6 = SmallInteger.from(6);
protected Integer key7 = SmallInteger.from(7);
protected Integer key8 = SmallInteger.from(8);
protected Integer key9 = SmallInteger.from(9);
protected Integer key10 = SmallInteger.from(10);
protected Dictionary dict = Dictionary.type().$new(SmallInteger.from(20));
/**
* @return
*/
@Override public String description()
{
java.lang.String exitID = "DictionaryWrites>>description";
Frame f0 = new Frame(exitID);
return (String)String.from("Dictionary writes");
}
/**
* @return
*/
@Override public void prepare()
{
java.lang.String exitID = "DictionaryWrites>>prepare";
Frame f0 = new Frame(exitID);
dict.removeAll();
}
/**
* @return
*/
@Override public void runTest()
{
java.lang.String exitID = "DictionaryWrites>>runTest";
Frame f0 = new Frame(exitID);
{
Dictionary prime = (Dictionary)dict;
prime.at_put(key1, Zero);
prime.at_put(key2, Zero);
prime.at_put(key3, Zero);
prime.at_put(key4, Zero);
prime.at_put(key5, Zero);
prime.at_put(key6, Zero);
prime.at_put(key7, Zero);
prime.at_put(key8, Zero);
prime.at_put(key9, Zero);
prime.at_put(key10, Zero);
};
}
}