Testing Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Testing Commands >

Testing Commands

TST.Generate DoubleName

Previous Top Next


MiniRobotLanguage (MRL)

 

TST.Generate DoubleName

Generates a double name

 

 

Intention

 

The TST.Generate Double Name command dynamically generates a double name, often comprising a first name and a middle name, based on an optional gender parameter.

This command is particularly useful in simulations, testing scenarios involving personal data, or generating sample databases.

 

Gender-Specific Generation: Allows specifying the gender of the name to be generated, enabling more precise control over the output.

Flexibility in Output: Can store the generated double name in a specified variable or on the TOS for immediate use.

Diverse Name Pool: Leverages an internal pool of names to produce varied and culturally diverse double names suitable for different genders.

 

The selection of names is dependent on the internal name pool and a name synthesizer, which may not cover all cultural or regional naming conventions comprehensively.

The generated names are randomized and may occasionally produce combinations that are less common or unexpected in certain cultural contexts.

 

This command streamlines the process of generating realistic names for testing or simulation purposes, providing a valuable tool for developers and testers working with personal data.

By accommodating gender specifications, the command ensures that generated names align with user expectations or testing requirements.

 

' Generate a female double name but do not specify a variable (use TOS)

TST.Generate Double Name||F

DBP.A female double name generated is $tos$.

 

' Generate a double name without specifying gender and store it in $$N02

TST.Generate Double Name|$$N02

DBP.A double name generated without specifying gender is $$N02.

 

' Generate a male double name and store it in $$N01

TST.Generate Double Name|$$N01|M

DBP.The male double name generated is $$N01.

ENR.

 

    Result:

'  The male double name generated is Sansesenan Macnolinas.

 

 

Syntax

 

 

TST.Generate Double Name|P1[|P2]

 

 

 

Parameter Explanation

 

P1 - The variable where the generated double name will be stored. If the variable name does not meet the standard (e.g., not 5 characters long), the generated name will be placed on the Top of Stack (TOS).

P2 - (optional) A parameter indicating the gender for the name generation: "M" for male, "F" for female, or "A" for any. If omitted, "A" (any) is assumed by default.

 

 

 

 

Example

 

'***********************************

' TST.-Sample

'***********************************
' Generate a female double name but do not specify a variable (use TOS)

TST.Generate Double Name||F

DBP.A female double name generated is $tos$.

 

' Generate a double name without specifying gender and store it in $$N02

TST.Generate Double Name|$$N02

DBP.A double name generated without specifying gender is $$N02.

 

' Generate a male double name and store it in $$N01

TST.Generate Double Name|$$N01|M

DBP.The male double name generated is $$N01.

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: