DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: B T

⟦7701bb51d⟧ TextFile

    Length: 1013 (0x3f5)
    Types: TextFile
    Names: »B«

Derivation

└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
    └─⟦5cb1d1d7f⟧ »DATA« 
        └─⟦3b1ee7bd8⟧ 
            └─⟦this⟧ 

TextFile

-- TEST VARIOUS PUTS AND GETS IN SEQUECE USING X0SEQ PACKAGE

with Instrument, X0seq;
use Instrument;

procedure Vpgsa2 is

    package Intseq is new X0seq (50, Integer);

    use Intseq;

    My_Sequence : Sequence;

    X : Integer;

begin

    Start ("VPGSA2", "PUT_NEXT, GET_CURRENT, PUT_CURRENT, GET_CURRENT" &
                        ", 1000 TIMES, 5000 ALLOCATIONS");
    for Ii in 1 .. 1000 loop

        Reset (My_Sequence);

        for I in 1 .. 5 loop

            Put_Next (My_Sequence, I);

        end loop;

        Get_Current (My_Sequence, X);

        if

           X /= 5

            then

            Comment
               ("GET_CURRENT DOESN'T RETURN THE CURRENT VALUE AFTER PUT_NEXT");

        end if;

        Put_Current (My_Sequence, 6);

        Get_Current (My_Sequence, X);

        if

           X /= 6

            then

            Comment
               ("GET_CURRENT DOESN'T RETURN THE RIGHT VALUE AFTER PUT_CURRENT");

        end if;

    end loop;

    Stop;

end Vpgsa2;