Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Please sign up or log in to edit the wiki.

Module:Commodity/doc: Difference between revisions

From the Star Citizen Wiki, the fidelity™ encyclopedia
Content deleted Content added
Created page with "{{Documentation}}"
Tag: 2017 source edit
 
No edit summary
Tags: Reverted 2017 source edit
Line 1: Line 1:
{{Documentation}}
{{Documentation}}

=== Tests ===
{{#invoke:Commodity/testcases|run}}

Revision as of 06:06, 1 June 2023

Function list
L 9 — round
L 19 — fixVehicleName
L 40 — fixType
L 60 — addRentalSubObject
L 95 — addBuySubObject
L 131 — methodtable.addShop
L 157 — methodtable.addShopData
L 174 — Commodity.formatOffset
L 188 — Commodity.calcPrice
L 224 — Commodity.calcPricePP
L 242 — Commodity.new

Tests

👌 All tests passed.

Unit tests
Name Expected Actual
👌 testCalcPriceFloat
👌 testCalcPriceInt
👌 testCalcPricePPFloat
👌 testCalcPricePPInt
👌 testFormatOffset
👌 testFormatOffsetSpan
On this page